Skip to content

Commit 7bbd416

Browse files
author
Marcelo Matus
committed
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
1 parent 39b7537 commit 7bbd416

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Lib/linkruntime.c

+8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1+
#ifndef SWIGEXPORT
12
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
23
# if defined(STATIC_LINKED)
34
# define SWIGEXPORT
45
# else
56
# define SWIGEXPORT __declspec(dllexport)
67
# endif
78
# 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
816

917
static void *ptr = 0;
1018
SWIGEXPORT void *

0 commit comments

Comments
 (0)