# HG changeset patch # User Sam Lantinga # Date 1143099243 0 # Node ID 4aa7df2476e7786c9c8817f81808527f7a46072b # Parent c439dad53df8ad99434c196b9d67e8b656cef2c6 Only use the visibility attribute in gcc 4.0 or newer diff -r c439dad53df8 -r 4aa7df2476e7 include/begin_code.h --- 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