Commit 2d7816e3586af54a27387b16f24ffde165913abc

Ryan C. Gordon 2022-10-12T09:59:31

dynapi: Disable support for API call logging by default. We can manually enable it if necessary, but it bloats the library to leave it on just in case. Fixes #6381.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/dynapi/SDL_dynapi.c b/src/dynapi/SDL_dynapi.c
index 13b0a55..9a7e4c9 100644
--- a/src/dynapi/SDL_dynapi.c
+++ b/src/dynapi/SDL_dynapi.c
@@ -190,7 +190,7 @@ SDL_DYNAPI_VARARGS(,,)
 #error Write me.
 #endif
 
-#define ENABLE_SDL_CALL_LOGGING 1
+#define ENABLE_SDL_CALL_LOGGING 0
 #if ENABLE_SDL_CALL_LOGGING
 static int SDLCALL SDL_SetError_LOGSDLCALLS(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) {
     char buf[512]; /* !!! FIXME: dynamic allocation */ \