Also remove DARWIN, since OS X doesn't define that
uint16_t Z;
} GCCPACKATTRIBUTE;
-#if __FreeBSD__ || __APPLE__ || __OpenBSD__ || __DragonFly__ || defined(__FreeBSD_kernel__)
+#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)
#include <machine/endian.h>
#elif __linux__ || __GNU__
# include <endian.h>
#include <sys/types.h>
-#if DARWIN || _AIX || __APPLE__
+#if defined(_AIX) || defined(__APPLE__)
// Darwin 6.0 Compatible implementation, uses pthreads so it portable across more platforms.
private:
typedef int sem_value_t;
-#if DARWIN || _AIX || __APPLE__
+#if defined(_AIX) || defined(__APPLE__)
uint32_t m_magic;
pthread_mutex_t m_lock;
pthread_cond_t m_gtzero;