From: Bart Van Assche Date: Tue, 21 Jul 2009 11:12:59 +0000 (+0000) Subject: Compiles now on Darwin. X-Git-Tag: svn/VALGRIND_3_5_0~350 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=61777dd5e272cbb3a21d6255719d18917f3476a0;p=thirdparty%2Fvalgrind.git Compiles now on Darwin. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10498 --- diff --git a/drd/tests/tsan_thread_wrappers_pthread.h b/drd/tests/tsan_thread_wrappers_pthread.h index 58b00ccc5b..a7a195fd50 100644 --- a/drd/tests/tsan_thread_wrappers_pthread.h +++ b/drd/tests/tsan_thread_wrappers_pthread.h @@ -51,7 +51,7 @@ #include #include // INT_MAX -#ifdef _APPLE_ +#ifdef __APPLE__ #include #define NO_BARRIER #define NO_TLS @@ -105,7 +105,7 @@ class CondVar; #ifndef NO_SPINLOCK /// helgrind does not (yet) support spin locks, so we annotate them. -#ifndef _APPLE_ +#ifndef __APPLE__ class SpinLock { public: SpinLock() { @@ -150,7 +150,7 @@ class SpinLock { private: OSSpinLock mu_; }; -#endif // _APPLE_ +#endif // __APPLE__ #endif // NO_SPINLOCK @@ -588,7 +588,7 @@ class BlockingCounter { int AtomicIncrement(volatile int *value, int increment); -#ifndef _APPLE_ +#ifndef __APPLE__ inline int AtomicIncrement(volatile int *value, int increment) { return __sync_add_and_fetch(value, increment); } @@ -607,7 +607,7 @@ int posix_memalign(void **out, size_t al, size_t size) { *out = memalign(al, size); return (*out == 0); } -#endif // _APPLE_ +#endif // __APPLE__ #endif // THREAD_WRAPPERS_PTHREAD_H // vim:shiftwidth=2:softtabstop=2:expandtab:foldmethod=marker diff --git a/drd/tests/tsan_unittest.cpp b/drd/tests/tsan_unittest.cpp index c76365cc91..bd3ec94f17 100644 --- a/drd/tests/tsan_unittest.cpp +++ b/drd/tests/tsan_unittest.cpp @@ -93,7 +93,7 @@ static inline void IGNORE_RETURN_VALUE(T v) #include #include -#ifndef _APPLE_ +#ifndef __APPLE__ #include #endif