From dd5ec533e743674a97344177fbc47925c686ba85 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Thu, 12 Jun 2003 13:09:38 +0000 Subject: "" svn path=/trunk/; revision=698 --- externals/grill/flext/source/flsupport.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'externals/grill/flext/source/flsupport.h') diff --git a/externals/grill/flext/source/flsupport.h b/externals/grill/flext/source/flsupport.h index 6a756590..98fbe441 100644 --- a/externals/grill/flext/source/flsupport.h +++ b/externals/grill/flext/source/flsupport.h @@ -974,7 +974,20 @@ protected: #ifdef __MRC__ friend class flext_obj; #endif - static void Setup(); + +/* + With linux and more than one flext-based external loaded all calls to static + exported functions refer to the first instance loaded! + As single- and multi-threaded to different initializations the function names have + to be different as well. +*/ +#ifdef FLEXT_THREADS +#define FLEXT_SETUPFUNC SetupMulti +#else +#define FLEXT_SETUPFUNC SetupSingle +#endif + + static void FLEXT_SETUPFUNC(); static bool chktilde(const char *objname); -- cgit v1.2.1