src/share/vm/libadt/port.hpp
Print this page
rev 554 : 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
*** 32,52 ****
#define IMPLEMENTATION #pragma implementation
//INTERFACE
#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
typedef void *VPTR;
// G++ puts it at the end of the base class
--- 32,41 ----