aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flext.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2002-12-22 01:28:34 +0000
committerThomas Grill <xovo@users.sourceforge.net>2002-12-22 01:28:34 +0000
commit99a29c1926eee84f100ad9ea59a8c33f7878c342 (patch)
tree8b9235a630b5839350529d9e255d4f87c2389b5b /externals/grill/flext/source/flext.h
parent927c48a90eb2a5ebf9e221041cd963c7377c8349 (diff)
"no message"
svn path=/trunk/; revision=306
Diffstat (limited to 'externals/grill/flext/source/flext.h')
-rw-r--r--externals/grill/flext/source/flext.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/externals/grill/flext/source/flext.h b/externals/grill/flext/source/flext.h
index 1e72daa5..9b5da4e6 100644
--- a/externals/grill/flext/source/flext.h
+++ b/externals/grill/flext/source/flext.h
@@ -34,11 +34,20 @@ WARRANTIES, see the file, "license.txt," in this distribution.
// determine System/OS/CPU
#include "flprefix.h"
+// include headers necessary for multi-threading
#ifdef FLEXT_THREADS
-extern "C" {
- #include <pthread.h>
- #include <sched.h>
-}
+ #if FLEXT_THREADS == FLEXT_THR_POSIX
+ extern "C" {
+ #include <pthread.h>
+ #include <sched.h>
+ }
+ #elif FLEXT_THREADS == FLEXT_THR_MP
+ #include <multiprocessing.h>
+ #elif FLEXT_THREADS == FLEXT_THR_WIN32
+ #include <windows.h>
+ #else
+ #error "Thread model not supported"
+ #endif
#endif
// include all the flext interface definitions