don't try to include <pthread> if USE_PTHREADS is not defined

This commit is contained in:
erwin.coumans
2008-04-08 02:13:05 +00:00
parent 06bae58536
commit daf293c43e

View File

@@ -13,13 +13,13 @@ subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
#include <pthread.h>
#include <semaphore.h>
#include "LinearMath/btScalar.h" #include "LinearMath/btScalar.h"
#include "PlatformDefinitions.h" #include "PlatformDefinitions.h"
#ifdef USE_PTHREADS //platform specific defines are defined in PlatformDefinitions.h #ifdef USE_PTHREADS //platform specific defines are defined in PlatformDefinitions.h
#include <pthread.h>
#include <semaphore.h>
#ifndef POSIX_THREAD_SUPPORT_H #ifndef POSIX_THREAD_SUPPORT_H
#define POSIX_THREAD_SUPPORT_H #define POSIX_THREAD_SUPPORT_H