From 62bc2c4c924ce24a2f98ca7bf1a0815ba41752fc Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sat, 28 Dec 2024 15:15:11 +0100
Subject: [PATCH] SDL_malloc: don't define FORCEINLINE
The FORCEINLINE macro is also used by Windows SDK headers.
When it is an empty macro, FORCEINLINE-d functions will
get global visibility error and cause duplicate symbol link errors.
HRESULT_FROM_WIN32 is such a function.
---
src/stdlib/SDL_malloc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/stdlib/SDL_malloc.c b/src/stdlib/SDL_malloc.c
index 8fe18b67b65f1..14cf422d5c911 100644
--- a/src/stdlib/SDL_malloc.c
+++ b/src/stdlib/SDL_malloc.c
@@ -28,7 +28,6 @@
#define LACKS_STRINGS_H
#define LACKS_STRING_H
#define LACKS_STDLIB_H
-#define FORCEINLINE
#define ABORT
#define NO_MALLOC_STATS 1
#define USE_LOCKS 1