aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flext.h
diff options
context:
space:
mode:
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