include/begin_code.h
changeset 11287 4d2a6202caa4
parent 10925 4de9d54bbc87
child 11475 27a1926addec
equal deleted inserted replaced
11286:61b90db596ee 11287:4d2a6202caa4
    59 #    define DECLSPEC    __declspec(dllimport)
    59 #    define DECLSPEC    __declspec(dllimport)
    60 #   endif
    60 #   endif
    61 #  else
    61 #  else
    62 #   define DECLSPEC __declspec(dllexport)
    62 #   define DECLSPEC __declspec(dllexport)
    63 #  endif
    63 #  endif
       
    64 # elif defined(__OS2__) && defined(__WATCOMC__)
       
    65 #   ifdef BUILD_SDL
       
    66 #    define DECLSPEC    __declspec(dllexport)
       
    67 #   else
       
    68 #    define DECLSPEC
       
    69 #   endif
    64 # else
    70 # else
    65 #  if defined(__GNUC__) && __GNUC__ >= 4
    71 #  if defined(__GNUC__) && __GNUC__ >= 4
    66 #   define DECLSPEC __attribute__ ((visibility("default")))
    72 #   define DECLSPEC __attribute__ ((visibility("default")))
    67 #  else
    73 #  else
    68 #   define DECLSPEC
    74 #   define DECLSPEC
    72 
    78 
    73 /* By default SDL uses the C calling convention */
    79 /* By default SDL uses the C calling convention */
    74 #ifndef SDLCALL
    80 #ifndef SDLCALL
    75 #if (defined(__WIN32__) || defined(__WINRT__)) && !defined(__GNUC__)
    81 #if (defined(__WIN32__) || defined(__WINRT__)) && !defined(__GNUC__)
    76 #define SDLCALL __cdecl
    82 #define SDLCALL __cdecl
       
    83 #elif defined(__OS2__) || defined(__EMX__)
       
    84 #define SDLCALL _System
       
    85 # if defined (__GNUC__) && !defined(_System)
       
    86 #  define _System /* for old EMX/GCC compat.  */
       
    87 # endif
    77 #else
    88 #else
    78 #define SDLCALL
    89 #define SDLCALL
    79 #endif
    90 #endif
    80 #endif /* SDLCALL */
    91 #endif /* SDLCALL */
    81 
    92