Fix fallback define for DECLSPEC for non-Windows platforms.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 26 May 2015 16:25:22 -0400
changeset 9634 7e843b8b8301
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
--- a/include/begin_code.h	Tue May 26 16:14:25 2015 -0400
+++ b/include/begin_code.h	Tue May 26 16:25:22 2015 -0400
@@ -64,8 +64,6 @@
 # else
 #  if defined(__GNUC__) && __GNUC__ >= 4
 #   define DECLSPEC __attribute__ ((visibility("default")))
-#  elif defined(__GNUC__) && __GNUC__ >= 2
-#   define DECLSPEC __declspec(dllexport)
 #  else
 #   define DECLSPEC
 #  endif