include/begin_code.h
changeset 1574 0fd72308659e
parent 1573 2422ca15ba42
child 1595 4aa7df2476e7
     1.1 --- a/include/begin_code.h	Wed Mar 22 01:28:36 2006 +0000
     1.2 +++ b/include/begin_code.h	Wed Mar 22 04:51:44 2006 +0000
     1.3 @@ -31,44 +31,40 @@
     1.4  #endif
     1.5  #define _begin_code_h
     1.6  
     1.7 -#ifdef __GNUC__
     1.8 -#define SDL_GCC_ATTR_VIS_DEFAULT __attribute__((visibility("default")))
     1.9 -#endif
    1.10 -
    1.11  /* Some compilers use a special export keyword */
    1.12  #ifndef DECLSPEC
    1.13 -# ifdef __BEOS__
    1.14 +# if defined(__BEOS__)
    1.15  #  if defined(__GNUC__)
    1.16  #   define DECLSPEC	__declspec(dllexport)
    1.17  #  else
    1.18  #   define DECLSPEC	__declspec(export)
    1.19  #  endif
    1.20 -# else
    1.21 -# ifdef __WIN32__
    1.22 +# elif defined(__WIN32__)
    1.23  #  ifdef __BORLANDC__
    1.24  #   ifdef BUILD_SDL
    1.25  #    define DECLSPEC 
    1.26  #   else
    1.27 -#    define DECLSPEC __declspec(dllimport)
    1.28 +#    define DECLSPEC	__declspec(dllimport)
    1.29  #   endif
    1.30  #  else
    1.31  #   define DECLSPEC	__declspec(dllexport)
    1.32  #  endif
    1.33 -# else
    1.34 -# ifdef __OS2__
    1.35 +# elif defined(__OS2__)
    1.36  #  ifdef __WATCOMC__
    1.37  #   ifdef BUILD_SDL
    1.38 -#    define DECLSPEC __declspec(dllexport)
    1.39 +#    define DECLSPEC	__declspec(dllexport)
    1.40  #   else
    1.41 -#  define DECLSPEC
    1.42 -# endif
    1.43 +#    define DECLSPEC
    1.44 +#   endif
    1.45  #  else
    1.46  #   define DECLSPEC
    1.47  #  endif
    1.48  # else
    1.49 -#  define DECLSPEC
    1.50 -# endif
    1.51 -# endif
    1.52 +#  if defined(__GNUC__)
    1.53 +#   define DECLSPEC	__attribute__ ((visibility("default")))
    1.54 +#  else
    1.55 +#   define DECLSPEC
    1.56 +#  endif
    1.57  # endif
    1.58  #endif
    1.59