include/begin_code.h
branchSDL-1.2
changeset 11966 0c7962a4336f
parent 6203 bc960ba38aae
equal deleted inserted replaced
11965:afbe1aac2dd1 11966:0c7962a4336f
    56 #   endif
    56 #   endif
    57 #  else
    57 #  else
    58 #   define DECLSPEC	__declspec(dllexport)
    58 #   define DECLSPEC	__declspec(dllexport)
    59 #  endif
    59 #  endif
    60 # elif defined(__OS2__)
    60 # elif defined(__OS2__)
    61 #  ifdef __WATCOMC__
       
    62 #   ifdef BUILD_SDL
    61 #   ifdef BUILD_SDL
    63 #    define DECLSPEC	__declspec(dllexport)
    62 #    define DECLSPEC	__declspec(dllexport)
    64 #   else
    63 #   else
    65 #    define DECLSPEC
    64 #    define DECLSPEC
    66 #   endif
    65 #   endif
    67 #  elif defined (__GNUC__) && __GNUC__ < 4
       
    68 #   /* Added support for GCC-EMX <v4.x */
       
    69 #   /* this is needed for XFree86/OS2 developement */
       
    70 #   /* F. Ambacher(anakor@snafu.de) 05.2008 */
       
    71 #   ifdef BUILD_SDL
       
    72 #    define DECLSPEC    __declspec(dllexport)
       
    73 #   else
       
    74 #    define DECLSPEC
       
    75 #   endif
       
    76 #  else
       
    77 #   define DECLSPEC
       
    78 #  endif
       
    79 # else
    66 # else
    80 #  if defined(__GNUC__) && __GNUC__ >= 4
    67 #  if defined(__GNUC__) && __GNUC__ >= 4
    81 #   define DECLSPEC	__attribute__ ((visibility("default")))
    68 #   define DECLSPEC	__attribute__ ((visibility("default")))
    82 #  else
    69 #  else
    83 #   define DECLSPEC
    70 #   define DECLSPEC
    91  */
    78  */
    92 #ifndef SDLCALL
    79 #ifndef SDLCALL
    93 # if defined(__WIN32__) && !defined(__GNUC__)
    80 # if defined(__WIN32__) && !defined(__GNUC__)
    94 #  define SDLCALL __cdecl
    81 #  define SDLCALL __cdecl
    95 # elif defined(__OS2__)
    82 # elif defined(__OS2__)
    96 #  if defined (__GNUC__) && __GNUC__ < 4
    83    /* But on OS/2, we use the _System calling convention */
    97 #   /* Added support for GCC-EMX <v4.x */
    84    /* to be compatible with every compiler */
    98 #   /* this is needed for XFree86/OS2 developement */
    85 #  if defined (__GNUC__) && !defined(_System)
    99 #   /* F. Ambacher(anakor@snafu.de) 05.2008 */
    86 #   define _System /* For compatibility with old GCC/EMX */
   100 #   define SDLCALL _cdecl
       
   101 #  else
       
   102 #   /* On other compilers on OS/2, we use the _System calling convention */
       
   103 #   /* to be compatible with every compiler */
       
   104 #   define SDLCALL _System
       
   105 #  endif
    87 #  endif
       
    88 #  define SDLCALL _System
   106 # else
    89 # else
   107 #  define SDLCALL
    90 #  define SDLCALL
   108 # endif
    91 # endif
   109 #endif /* SDLCALL */
    92 #endif /* SDLCALL */
   110 
    93