diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2006-04-10 19:00:44 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2006-04-10 19:00:44 +0000 |
commit | 7bbd41678e90eb5bb093c7ba155f465be0588e3a (patch) | |
tree | 6c8be83aa96e9e5e34ebe87a0b7cd60c198b81bd /Lib/linkruntime.c | |
parent | 39b7537a9a66ab5c4c207d22e3b002206750d8a8 (diff) | |
download | swig-7bbd41678e90eb5bb093c7ba155f465be0588e3a.tar.gz |
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
Diffstat (limited to 'Lib/linkruntime.c')
-rw-r--r-- | Lib/linkruntime.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/linkruntime.c b/Lib/linkruntime.c index 1d4f80cf6..ddc781207 100644 --- a/Lib/linkruntime.c +++ b/Lib/linkruntime.c @@ -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 * |