From 2d7816e3586af54a27387b16f24ffde165913abc Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Wed, 12 Oct 2022 09:59:31 -0400
Subject: [PATCH] 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.
---
src/dynapi/SDL_dynapi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/dynapi/SDL_dynapi.c b/src/dynapi/SDL_dynapi.c
index 13b0a555113c..9a7e4c994329 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 */ \