Mercurial > hg > graal-jvmci-8
comparison src/share/vm/libadt/port.hpp @ 513:2328d1d3f8cf
6781583: Hotspot build fails on linux 64 bit platform with gcc 4.3.2
Summary: Fixed the wrong cast between types since more restrictions are imposed by gcc 4.3.2
Reviewed-by: jcoomes, acorn, phh, never
author | xlu |
---|---|
date | Wed, 24 Dec 2008 19:13:53 -0800 |
parents | a61af66fc99e |
children | 0fbdb4381b99 |
comparison
equal
deleted
inserted
replaced
512:db4caa99ef11 | 513:2328d1d3f8cf |
---|---|
31 #define INTERFACE #pragma interface | 31 #define INTERFACE #pragma interface |
32 #define IMPLEMENTATION #pragma implementation | 32 #define IMPLEMENTATION #pragma implementation |
33 //INTERFACE | 33 //INTERFACE |
34 #include <stddef.h> | 34 #include <stddef.h> |
35 #include <stdlib.h> | 35 #include <stdlib.h> |
36 #include <string.h> | |
37 #undef bzero | |
38 inline void bzero(void *b, int len) { memset(b,0,len); } | |
39 #undef bcopy | |
40 inline void bcopy(const void *s, void *d, size_t len) { memmove(d,s,len); } | |
41 #undef bcmp | |
42 inline int bcmp(const void *s,const void *t,int len) { return memcmp(s,t,len);} | |
43 extern "C" unsigned long strtoul(const char *s, char **end, int base); | |
44 | |
45 // Definition for sys_errlist varies from Sun 4.1 & Solaris. | |
46 // We use the new Solaris definition. | |
47 #include <string.h> | 36 #include <string.h> |
48 | 37 |
49 // Access to the C++ class virtual function pointer | 38 // Access to the C++ class virtual function pointer |
50 // Put the class in the macro | 39 // Put the class in the macro |
51 typedef void *VPTR; | 40 typedef void *VPTR; |