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
This commit is contained in:
Marcelo Matus 2006-03-01 07:40:56 +00:00
commit ea220fbfd7
2 changed files with 34 additions and 6 deletions

View file

@ -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)