Fixed bug 3879 - add missing SDLCALL to SDLTest_TrackedMalloc & co. Ozkan Sezer The attached trivial patch adds missing SDLCALL to SDLTest_TrackedMalloc & co.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
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;