aboutsummaryrefslogtreecommitdiff
path: root/src/threading.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/threading.h22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/threading.h b/src/threading.h
index bfa9ab8..4114dba 100644
--- a/src/threading.h
+++ b/src/threading.h
@@ -4,30 +4,12 @@
4#ifndef __threading_h__ 4#ifndef __threading_h__
5#define __threading_h__ 1 5#define __threading_h__ 1
6 6
7/* Platform detection 7/*
8 * win32-pthread: 8 * win32-pthread:
9 * define HAVE_WIN32_PTHREAD and PTW32_INCLUDE_WINDOWS_H in your project configuration when building for win32-pthread. 9 * define HAVE_WIN32_PTHREAD and PTW32_INCLUDE_WINDOWS_H in your project configuration when building for win32-pthread.
10 * link against pthreadVC2.lib, and of course have pthreadVC2.dll somewhere in your path. 10 * link against pthreadVC2.lib, and of course have pthreadVC2.dll somewhere in your path.
11 */ 11 */
12#ifdef _WIN32_WCE 12#include "platform.h"
13 #define PLATFORM_POCKETPC
14#elif defined(_XBOX)
15 #define PLATFORM_XBOX
16#elif (defined _WIN32)
17 #define PLATFORM_WIN32
18#elif (defined __linux__)
19 #define PLATFORM_LINUX
20#elif (defined __APPLE__) && (defined __MACH__)
21 #define PLATFORM_OSX
22#elif (defined __NetBSD__) || (defined __FreeBSD__) || (defined BSD)
23 #define PLATFORM_BSD
24#elif (defined __QNX__)
25 #define PLATFORM_QNX
26#elif (defined __CYGWIN__)
27 #define PLATFORM_CYGWIN
28#else
29 #error "Unknown platform!"
30#endif
31 13
32typedef int bool_t; 14typedef int bool_t;
33#ifndef FALSE 15#ifndef FALSE