WinRT: used Win32-style DECLSPEC and SDLCALL macros (for building a .dll)
This commit is contained in:
parent
60cb5a5229
commit
020c3bed8c
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@
|
||||||
# else
|
# else
|
||||||
# define DECLSPEC __declspec(export)
|
# define DECLSPEC __declspec(export)
|
||||||
# endif
|
# endif
|
||||||
# elif defined(__WIN32__)
|
# elif defined(__WIN32__) || defined(__WINRT__)
|
||||||
# ifdef __BORLANDC__
|
# ifdef __BORLANDC__
|
||||||
# ifdef BUILD_SDL
|
# ifdef BUILD_SDL
|
||||||
# define DECLSPEC
|
# define DECLSPEC
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
/* By default SDL uses the C calling convention */
|
/* By default SDL uses the C calling convention */
|
||||||
#ifndef SDLCALL
|
#ifndef SDLCALL
|
||||||
#if defined(__WIN32__) && !defined(__GNUC__)
|
#if (defined(__WIN32__) || defined(__WINRT__)) && !defined(__GNUC__)
|
||||||
#define SDLCALL __cdecl
|
#define SDLCALL __cdecl
|
||||||
#else
|
#else
|
||||||
#define SDLCALL
|
#define SDLCALL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue