From 99a29c1926eee84f100ad9ea59a8c33f7878c342 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sun, 22 Dec 2002 01:28:34 +0000 Subject: "no message" svn path=/trunk/; revision=306 --- externals/grill/flext/source/flext.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'externals/grill/flext/source/flext.h') 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 - #include -} + #if FLEXT_THREADS == FLEXT_THR_POSIX + extern "C" { + #include + #include + } + #elif FLEXT_THREADS == FLEXT_THR_MP + #include + #elif FLEXT_THREADS == FLEXT_THR_WIN32 + #include + #else + #error "Thread model not supported" + #endif #endif // include all the flext interface definitions -- cgit v1.2.1