Commit cf9236488a33b951e92aaadb2b3bc0c836efa0d5

Sam Lantinga 2017-10-13T09:50:04

Fixed bug 3879 - add missing SDLCALL to SDLTest_TrackedMalloc & co. Ozkan Sezer The attached trivial patch adds missing SDLCALL to SDLTest_TrackedMalloc & co.

diff --git a/src/test/SDL_test_memory.c b/src/test/SDL_test_memory.c
index b060332..3a2dc71 100644
--- a/src/test/SDL_test_memory.c
+++ b/src/test/SDL_test_memory.c
@@ -144,7 +144,7 @@ static void SDL_UntrackAllocation(void *mem)
     }
 }
 
-static void *SDLTest_TrackedMalloc(size_t size)
+static void * SDLCALL SDLTest_TrackedMalloc(size_t size)
 {
     void *mem;
 
@@ -155,7 +155,7 @@ static void *SDLTest_TrackedMalloc(size_t size)
     return mem;
 }
 
-static void *SDLTest_TrackedCalloc(size_t nmemb, size_t size)
+static void * SDLCALL SDLTest_TrackedCalloc(size_t nmemb, size_t size)
 {
     void *mem;
 
@@ -166,7 +166,7 @@ static void *SDLTest_TrackedCalloc(size_t nmemb, size_t size)
     return mem;
 }
 
-static void *SDLTest_TrackedRealloc(void *ptr, size_t size)
+static void * SDLCALL SDLTest_TrackedRealloc(void *ptr, size_t size)
 {
     void *mem;
 
@@ -181,7 +181,7 @@ static void *SDLTest_TrackedRealloc(void *ptr, size_t size)
     return mem;
 }
 
-static void SDLTest_TrackedFree(void *ptr)
+static void SDLCALL SDLTest_TrackedFree(void *ptr)
 {
     if (!ptr) {
         return;