We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3879 - add missing SDLCALL to SDLTest_TrackedMalloc & co.
Summary: add missing SDLCALL to SDLTest_TrackedMalloc & co.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 trivial
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-13 12:37 UTC by Ozkan Sezer
Modified: 2017-10-13 16:50 UTC (History)
0 users

See Also:


Attachments
SDLCALL patch (1.09 KB, patch)
2017-10-13 12:37 UTC, Ozkan Sezer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ozkan Sezer 2017-10-13 12:37:42 UTC
Created attachment 2982 [details]
SDLCALL patch

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
--- a/src/test/SDL_test_memory.c
+++ b/src/test/SDL_test_memory.c
@@ -144,7 +144,7 @@
     }
 }
 
-static void *SDLTest_TrackedMalloc(size_t size)
+static void * SDLCALL SDLTest_TrackedMalloc(size_t size)
 {
     void *mem;
 
@@ -155,7 +155,7 @@
     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 @@
     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 @@
     return mem;
 }
 
-static void SDLTest_TrackedFree(void *ptr)
+static void SDLCALL SDLTest_TrackedFree(void *ptr)
 {
     if (!ptr) {
         return;
Comment 1 Sam Lantinga 2017-10-13 16:50:23 UTC
Thanks!
https://hg.libsdl.org/SDL/rev/8c8e18a2c390