Skip to content

Commit

Permalink
Add HAVE_UNSETENV to preprocessor guard
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Jul 19, 2024
1 parent e0a17db commit 252efd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stdlib/SDL_getenv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 252efd8

Please sign in to comment.