changeset 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 c439dad53df8
children 56f952883795
files include/begin_code.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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