Mercurial > mm7
comparison lib/swig/swigwin-2.0.11/Lib/linkruntime.c @ 1899:b3009adc0e2f
Adding swig, gitignore, hgignore
author | Nomad |
---|---|
date | Mon, 21 Oct 2013 10:42:27 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1867:eb580660bbbb | 1899:b3009adc0e2f |
---|---|
1 #ifndef SWIGEXPORT | |
2 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
3 # if defined(STATIC_LINKED) | |
4 # define SWIGEXPORT | |
5 # else | |
6 # define SWIGEXPORT __declspec(dllexport) | |
7 # endif | |
8 # else | |
9 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) | |
10 # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
11 # else | |
12 # define SWIGEXPORT | |
13 # endif | |
14 # endif | |
15 #endif | |
16 | |
17 static void *ptr = 0; | |
18 SWIGEXPORT void * | |
19 SWIG_ReturnGlobalTypeList(void *t) { | |
20 if (!ptr && !t) ptr = t; | |
21 return ptr; | |
22 } |