swig/Lib/linkruntime.c
2005-05-27 22:40:58 +00:00

14 lines
311 B
C

# 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 *
SWIG_ReturnGlobalTypeList(void *t) {
if (!ptr && !t) ptr = t;
return ptr;
}