set proper sdl calling convention for vcpkg builds
authoralfadur
Sun, 14 Oct 2018 22:55:07 +0300
changeset 13933 d178a834f1f4
parent 13932 fa9f93393e9c
child 13934 f8b5708835de
set proper sdl calling convention for vcpkg builds
misc/libphyslayer/physfsrwops.c
--- a/misc/libphyslayer/physfsrwops.c	Sun Oct 14 21:13:32 2018 +0200
+++ b/misc/libphyslayer/physfsrwops.c	Sun Oct 14 22:55:07 2018 +0300
@@ -24,6 +24,10 @@
 #include <stdio.h>  /* used for SEEK_SET, SEEK_CUR, SEEK_END ... */
 #include "physfsrwops.h"
 
+#ifdef WIN32_VCPKG
+#define SDLCALL __cdecl
+#endif
+
 /* SDL's RWOPS interface changed a little in SDL 1.3... */
 #if defined(SDL_VERSION_ATLEAST)
 #if SDL_VERSION_ATLEAST(1, 3, 0)