From 7bbd41678e90eb5bb093c7ba155f465be0588e3a Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 10 Apr 2006 19:00:44 +0000 Subject: [PATCH] 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 --- Lib/linkruntime.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 *