fix macro issue reported by Vladimir Menshakov
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9044 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
39b7537a9a
commit
7bbd41678e
1 changed files with 8 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#ifndef SWIGEXPORT
|
||||
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
||||
# if defined(STATIC_LINKED)
|
||||
# define SWIGEXPORT
|
||||
|
|
@ -5,6 +6,13 @@
|
|||
# define SWIGEXPORT __declspec(dllexport)
|
||||
# endif
|
||||
# else
|
||||
# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
|
||||
# define SWIGEXPORT __attribute__ ((visibility("default")))
|
||||
# else
|
||||
# define SWIGEXPORT
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
static void *ptr = 0;
|
||||
SWIGEXPORT void *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue