From 5a78fc72e326770c4a96f8dcd3d4ad4b1faba97d Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Sat, 27 Oct 2012 18:21:31 -0400 Subject: [PATCH] WinRT: used Win32-style DECLSPEC and SDLCALL macros (for building a .dll) --- include/begin_code.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/begin_code.h b/include/begin_code.h index b45af55ea..381007a61 100644 --- a/include/begin_code.h +++ b/include/begin_code.h @@ -41,7 +41,7 @@ # else # define DECLSPEC __declspec(export) # endif -# elif defined(__WIN32__) +# elif defined(__WIN32__) || defined(__WINRT__) # ifdef __BORLANDC__ # ifdef BUILD_SDL # define DECLSPEC @@ -62,7 +62,7 @@ /* By default SDL uses the C calling convention */ #ifndef SDLCALL -#if defined(__WIN32__) && !defined(__GNUC__) +#if (defined(__WIN32__) || defined(__WINRT__)) && !defined(__GNUC__) #define SDLCALL __cdecl #else #define SDLCALL