Only use the visibility attribute in gcc 4.0 or newer
authorSam Lantinga <slouken@libsdl.org>
Thu, 23 Mar 2006 07:34:03 +0000
changeset 15954aa7df2476e7
parent 1594 c439dad53df8
child 1596 56f952883795
Only use the visibility attribute in gcc 4.0 or newer
include/begin_code.h
     1.1 --- a/include/begin_code.h	Thu Mar 23 06:48:12 2006 +0000
     1.2 +++ b/include/begin_code.h	Thu Mar 23 07:34:03 2006 +0000
     1.3 @@ -60,7 +60,7 @@
     1.4  #   define DECLSPEC
     1.5  #  endif
     1.6  # else
     1.7 -#  if defined(__GNUC__)
     1.8 +#  if defined(__GNUC__) && __GNUC__ >= 4
     1.9  #   define DECLSPEC	__attribute__ ((visibility("default")))
    1.10  #  else
    1.11  #   define DECLSPEC