Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/libadt/port.hpp Wed Dec 24 13:06:09 2008 -0800 +++ b/src/share/vm/libadt/port.hpp Wed Dec 24 19:13:53 2008 -0800 @@ -34,17 +34,6 @@ #include <stddef.h> #include <stdlib.h> #include <string.h> -#undef bzero -inline void bzero(void *b, int len) { memset(b,0,len); } -#undef bcopy -inline void bcopy(const void *s, void *d, size_t len) { memmove(d,s,len); } -#undef bcmp -inline int bcmp(const void *s,const void *t,int len) { return memcmp(s,t,len);} -extern "C" unsigned long strtoul(const char *s, char **end, int base); - -// Definition for sys_errlist varies from Sun 4.1 & Solaris. -// We use the new Solaris definition. -#include <string.h> // Access to the C++ class virtual function pointer // Put the class in the macro