diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2002-12-22 01:28:34 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2002-12-22 01:28:34 +0000 |
commit | 99a29c1926eee84f100ad9ea59a8c33f7878c342 (patch) | |
tree | 8b9235a630b5839350529d9e255d4f87c2389b5b /externals/grill/flext/source/flprefix.h | |
parent | 927c48a90eb2a5ebf9e221041cd963c7377c8349 (diff) |
"no message"
svn path=/trunk/; revision=306
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 |