include/begin_code.h
changeset 7657 7a8955fe2f63
parent 7191 75360622e65f
child 7665 4c0a6cfe27a0
     1.1 --- a/include/begin_code.h	Sun Aug 18 22:05:53 2013 -0700
     1.2 +++ b/include/begin_code.h	Sun Aug 18 23:18:11 2013 -0700
     1.3 @@ -35,13 +35,7 @@
     1.4  
     1.5  /* Some compilers use a special export keyword */
     1.6  #ifndef DECLSPEC
     1.7 -# if defined(__BEOS__) || defined(__HAIKU__)
     1.8 -#  if defined(__GNUC__)
     1.9 -#   define DECLSPEC __declspec(dllexport)
    1.10 -#  else
    1.11 -#   define DECLSPEC __declspec(export)
    1.12 -#  endif
    1.13 -# elif defined(__WIN32__)
    1.14 +# if defined(__WIN32__)
    1.15  #  ifdef __BORLANDC__
    1.16  #   ifdef BUILD_SDL
    1.17  #    define DECLSPEC
    1.18 @@ -54,6 +48,8 @@
    1.19  # else
    1.20  #  if defined(__GNUC__) && __GNUC__ >= 4
    1.21  #   define DECLSPEC __attribute__ ((visibility("default")))
    1.22 +#  elif defined(__GNUC__) && __GNUC__ >= 2
    1.23 +#   define DECLSPEC __declspec(dllexport)
    1.24  #  else
    1.25  #   define DECLSPEC
    1.26  #  endif