From: Nicholas Nethercote Date: Fri, 24 Apr 2009 04:28:15 +0000 (+0000) Subject: Removed some Darwin-specific code that crept in from the DARWIN branch. X-Git-Tag: svn/VALGRIND_3_5_0~791 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dcea4e928e1008592f750f5b7e2cd2537f44df1a;p=thirdparty%2Fvalgrind.git Removed some Darwin-specific code that crept in from the DARWIN branch. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9599 --- diff --git a/tests/asm.h b/tests/asm.h index d64a893f75..0fd5cb3bac 100644 --- a/tests/asm.h +++ b/tests/asm.h @@ -5,15 +5,7 @@ // general, any symbol named in asm code should be wrapped by VG_SYM. // This one is for use in inline asm in C files. -#if defined(VGO_darwin) -#define VG_SYM(x) "_"#x -#else #define VG_SYM(x) #x -#endif // This one is for use in asm files. -#if defined(VGO_darwin) #define VG_SYM_ASM(x) _#x -#else -#define VG_SYM_ASM(x) x -#endif diff --git a/tests/malloc.h b/tests/malloc.h index 0179b387cc..454d2cff6a 100644 --- a/tests/malloc.h +++ b/tests/malloc.h @@ -1,11 +1,7 @@ // Replacement for malloc.h which factors out platform differences. #include -#if defined(VGO_darwin) -# include -#else -# include -#endif +#include #include @@ -14,12 +10,7 @@ __attribute__((unused)) static void* memalign16(size_t szB) { void* x; -#if defined(VGO_darwin) - // Darwin lacks memalign, but its malloc is always 16-aligned anyway. - x = malloc(szB); -#else x = memalign(16, szB); -#endif assert(x); assert(0 == ((16-1) & (unsigned long)x)); return x; diff --git a/tests/sys_mman.h b/tests/sys_mman.h index 7ac64d54c4..862bccc13d 100644 --- a/tests/sys_mman.h +++ b/tests/sys_mman.h @@ -2,10 +2,6 @@ #include -#if defined(VGO_darwin) -# define MAP_ANONYMOUS MAP_ANON -#endif - #include #include