diff options
Diffstat (limited to 'Lib/linkruntime.c')
-rw-r--r-- | Lib/linkruntime.c | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/Lib/linkruntime.c b/Lib/linkruntime.c index 3204a1c13..1d4f80cf6 100644 --- a/Lib/linkruntime.c +++ b/Lib/linkruntime.c @@ -1,23 +1,13 @@ -#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(_MSC_VER) || defined(__GNUC__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT(a) a -# else -# define SWIGEXPORT(a) __declspec(dllexport) a -# endif -# else -# if defined(__BORLANDC__) -# define SWIGEXPORT(a) a _export -# else -# define SWIGEXPORT(a) a -# endif -# endif -#else -# define SWIGEXPORT(a) a -#endif +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else static void *ptr = 0; -SWIGEXPORT(void *) +SWIGEXPORT void * SWIG_ReturnGlobalTypeList(void *t) { if (!ptr && !t) ptr = t; return ptr; |