Fix fallback define for DECLSPEC for non-Windows platforms.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 26 May 2015 16:25:22 -0400
changeset 96347e843b8b8301
parent 9633 3e742dd2c13d
child 9635 564b57497f2b
Fix fallback define for DECLSPEC for non-Windows platforms.

Looks like it was a copy/paste error?

GCC doesn't support visibility attributes until gcc4, so just make it blank.

Fixes Bugzilla #2720.
include/begin_code.h
     1.1 --- a/include/begin_code.h	Tue May 26 16:14:25 2015 -0400
     1.2 +++ b/include/begin_code.h	Tue May 26 16:25:22 2015 -0400
     1.3 @@ -64,8 +64,6 @@
     1.4  # else
     1.5  #  if defined(__GNUC__) && __GNUC__ >= 4
     1.6  #   define DECLSPEC __attribute__ ((visibility("default")))
     1.7 -#  elif defined(__GNUC__) && __GNUC__ >= 2
     1.8 -#   define DECLSPEC __declspec(dllexport)
     1.9  #  else
    1.10  #   define DECLSPEC
    1.11  #  endif