diff options
Diffstat (limited to 'externals/grill/flext/source/flprefix.h')
-rwxr-xr-x | externals/grill/flext/source/flprefix.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/externals/grill/flext/source/flprefix.h b/externals/grill/flext/source/flprefix.h index d2c7f173..6aa1e0ac 100755 --- a/externals/grill/flext/source/flprefix.h +++ b/externals/grill/flext/source/flprefix.h @@ -50,6 +50,11 @@ WARRANTIES, see the file, "license.txt," in this distribution. #define FLEXT_CPU_MIPS 3 #define FLEXT_CPU_ALPHA 4 +// --- definitions for FLEXT_THREADS ----------------- +#define FLEXT_THR_POSIX 1 // pthreads +#define FLEXT_THR_WIN32 2 // Win32 native +#define FLEXT_THR_MP 3 // MacOS MPThreads + // --------------------------------------------------- // support old definitions @@ -233,4 +238,15 @@ WARRANTIES, see the file, "license.txt," in this distribution. // #pragma message("Compiling for PD") #endif +// set threading model +#ifdef FLEXT_THREADS + #undef FLEXT_THREADS + #if FLEXT_OS == FLEXT_OS_MACOS && FLEXT_SYS == FLEXT_SYS_MAX + // Max crashes with posix threads (but don't know why...) + #define FLEXT_THREADS FLEXT_THR_MP + #else + #define FLEXT_THREADS FLEXT_THR_POSIX + #endif +#endif + #endif |