swiglabels.swg: added check if __GNUC__ is defined

It makes sense to check if the preprocessor definition __GNUC__ is defined before using it as a value.
This commit is contained in:
Johan Gustavsson 2016-02-13 13:49:07 +01:00
commit 628e9a79f6

View file

@ -65,11 +65,13 @@
#endif #endif
/* exporting methods */ /* exporting methods */
#if defined(__GNUC__)
# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
# ifndef GCC_HASCLASSVISIBILITY # ifndef GCC_HASCLASSVISIBILITY
# define GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY
# endif # endif
# endif # endif
#endif
#ifndef SWIGEXPORT #ifndef SWIGEXPORT
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)