diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2006-03-01 07:40:56 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2006-03-01 07:40:56 +0000 |
commit | ea220fbfd752ae79ef5d7c7b3b705fd545ccedce (patch) | |
tree | a3f8d27b82c9ce7961cf0c862e0ca13c5cc2796c /Lib/swiglabels.swg | |
parent | cea40215bbb60de68a28574baaf1d6743585cb29 (diff) | |
download | swig-ea220fbfd752ae79ef5d7c7b3b705fd545ccedce.tar.gz |
add support for the GCC visibility attribute
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8919 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/swiglabels.swg')
-rw-r--r-- | Lib/swiglabels.swg | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Lib/swiglabels.swg b/Lib/swiglabels.swg index f185c5b98..531a2d700 100644 --- a/Lib/swiglabels.swg +++ b/Lib/swiglabels.swg @@ -50,11 +50,6 @@ # endif #endif -#if (__GNUC__ >= 4) -# ifndef GCC_HASCLASSVISIBILITY -# define GCC_HASCLASSVISIBILITY -# endif -#endif /* internal SWIG method */ #ifndef SWIGINTERN @@ -66,7 +61,13 @@ # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif -/* exporting methods for Windows DLLs */ +/* exporting methods */ +#if (__GNUC__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +#endif + #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) |