From 190382e9ec81c21c2ea0fc67c42192f595520e98 Mon Sep 17 00:00:00 2001 From: "Erwin Coumans (Google)" Date: Sat, 30 May 2015 20:32:29 -0700 Subject: [PATCH] enable posix shared memory on non-Win32 platforms (Linux and Mac) for example browser --- examples/SharedMemory/PosixSharedMemory.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/SharedMemory/PosixSharedMemory.cpp b/examples/SharedMemory/PosixSharedMemory.cpp index 69a54eace..5289db5f6 100644 --- a/examples/SharedMemory/PosixSharedMemory.cpp +++ b/examples/SharedMemory/PosixSharedMemory.cpp @@ -2,10 +2,10 @@ #include "Bullet3Common/b3Logging.h" #include "LinearMath/btScalar.h" //for btAssert -#ifdef __APPLE__ +//haven't implemented shared memory on Windows yet, just Linux and Mac +#ifndef _WIN32 #define TEST_SHARED_MEMORY - -#endif +#endif//_WIN32 #include @@ -83,4 +83,4 @@ void PosixSharedMemory::releaseSharedMemory(int key, int size) } } #endif -} \ No newline at end of file +}