include/begin_code.h
changeset 8583 fb2933ca805f
parent 8149 681eb46b8ac4
parent 8582 c3e9a2b93517
child 8879 f6e4f24df1ac
     1.1 --- a/include/begin_code.h	Sun Mar 09 10:38:30 2014 -0700
     1.2 +++ b/include/begin_code.h	Sun Mar 09 11:36:47 2014 -0700
     1.3 @@ -43,7 +43,7 @@
     1.4  
     1.5  /* Some compilers use a special export keyword */
     1.6  #ifndef DECLSPEC
     1.7 -# if defined(__WIN32__)
     1.8 +# if defined(__WIN32__) || defined(__WINRT__)
     1.9  #  ifdef __BORLANDC__
    1.10  #   ifdef BUILD_SDL
    1.11  #    define DECLSPEC
    1.12 @@ -66,7 +66,7 @@
    1.13  
    1.14  /* By default SDL uses the C calling convention */
    1.15  #ifndef SDLCALL
    1.16 -#if defined(__WIN32__) && !defined(__GNUC__)
    1.17 +#if (defined(__WIN32__) || defined(__WINRT__)) && !defined(__GNUC__)
    1.18  #define SDLCALL __cdecl
    1.19  #else
    1.20  #define SDLCALL