From a2a1d2de666d7e8e6c1017343ac42c8ec41a46e6 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Fri, 19 Jul 2024 10:04:16 +0200 Subject: [PATCH] Add HAVE_UNSETENV to preprocessor guard --- src/stdlib/SDL_getenv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdlib/SDL_getenv.c b/src/stdlib/SDL_getenv.c index 4bcab40ece..ddc5ba4918 100644 --- a/src/stdlib/SDL_getenv.c +++ b/src/stdlib/SDL_getenv.c @@ -80,7 +80,7 @@ int SDL_setenv(const char *name, const char *value, int overwrite) return 0; } /* We have a real environment table, but no real setenv? Fake it w/ putenv. */ -#elif (defined(HAVE_GETENV) && defined(HAVE_PUTENV) && !defined(HAVE_SETENV)) +#elif (defined(HAVE_GETENV) && defined(HAVE_PUTENV) && defined(HAVE_UNSETENV) && !defined(HAVE_SETENV)) int SDL_setenv(const char *name, const char *value, int overwrite) { size_t len;