Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing SDLCALL to SDLTest_TrackedMalloc & co. #2664

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Closed

add missing SDLCALL to SDLTest_TrackedMalloc & co. #2664

SDLBugzilla opened this issue Feb 11, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 2.0
Reported for operating system, platform: All, All

Comments on the original bug report:

On 2017-10-13 12:37:42 +0000, Ozkan Sezer wrote:

Created attachment 2982
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;

On 2017-10-13 16:50:23 +0000, Sam Lantinga wrote:

Thanks!
https://hg.libsdl.org/SDL/rev/8c8e18a2c390

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant