diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2003-06-12 13:09:38 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2003-06-12 13:09:38 +0000 |
commit | dd5ec533e743674a97344177fbc47925c686ba85 (patch) | |
tree | bb03a74d259a601a3b4eb5476c00b38d3d9ba5aa /externals/grill/flext/source/flsupport.h | |
parent | 9626bf38f809dcb2d978e4ac6a7069dc8a0851bc (diff) |
""
svn path=/trunk/; revision=698
Diffstat (limited to 'externals/grill/flext/source/flsupport.h')
-rw-r--r-- | externals/grill/flext/source/flsupport.h | 15 |
1 files changed, 14 insertions, 1 deletions
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); |