include/begin_code.h
changeset 11287 4d2a6202caa4
parent 10925 4de9d54bbc87
child 11475 27a1926addec
     1.1 --- a/include/begin_code.h	Mon Aug 14 10:14:07 2017 -0700
     1.2 +++ b/include/begin_code.h	Mon Aug 14 10:15:38 2017 -0700
     1.3 @@ -61,6 +61,12 @@
     1.4  #  else
     1.5  #   define DECLSPEC __declspec(dllexport)
     1.6  #  endif
     1.7 +# elif defined(__OS2__) && defined(__WATCOMC__)
     1.8 +#   ifdef BUILD_SDL
     1.9 +#    define DECLSPEC    __declspec(dllexport)
    1.10 +#   else
    1.11 +#    define DECLSPEC
    1.12 +#   endif
    1.13  # else
    1.14  #  if defined(__GNUC__) && __GNUC__ >= 4
    1.15  #   define DECLSPEC __attribute__ ((visibility("default")))
    1.16 @@ -74,6 +80,11 @@
    1.17  #ifndef SDLCALL
    1.18  #if (defined(__WIN32__) || defined(__WINRT__)) && !defined(__GNUC__)
    1.19  #define SDLCALL __cdecl
    1.20 +#elif defined(__OS2__) || defined(__EMX__)
    1.21 +#define SDLCALL _System
    1.22 +# if defined (__GNUC__) && !defined(_System)
    1.23 +#  define _System /* for old EMX/GCC compat.  */
    1.24 +# endif
    1.25  #else
    1.26  #define SDLCALL
    1.27  #endif