diff include/begin_code.h @ 1595:4aa7df2476e7

Only use the visibility attribute in gcc 4.0 or newer
author Sam Lantinga <slouken@libsdl.org>
date Thu, 23 Mar 2006 07:34:03 +0000
parents 0fd72308659e
children f12379c41042
line wrap: on
line diff
--- a/include/begin_code.h	Thu Mar 23 06:48:12 2006 +0000
+++ b/include/begin_code.h	Thu Mar 23 07:34:03 2006 +0000
@@ -60,7 +60,7 @@
 #   define DECLSPEC
 #  endif
 # else
-#  if defined(__GNUC__)
+#  if defined(__GNUC__) && __GNUC__ >= 4
 #   define DECLSPEC	__attribute__ ((visibility("default")))
 #  else
 #   define DECLSPEC