From 2c53608033ac3b98e06c7d18fc7afd1872ec747d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 23 Mar 2006 07:34:03 +0000 Subject: [PATCH] Only use the visibility attribute in gcc 4.0 or newer --- include/begin_code.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/begin_code.h b/include/begin_code.h index 669c9d3b2..5ce228799 100644 --- a/include/begin_code.h +++ b/include/begin_code.h @@ -60,7 +60,7 @@ # define DECLSPEC # endif # else -# if defined(__GNUC__) +# if defined(__GNUC__) && __GNUC__ >= 4 # define DECLSPEC __attribute__ ((visibility("default"))) # else # define DECLSPEC