mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-28 07:29:09 +00:00
SDL_getenv() should return const
This also allows us to use SDL_FreeLater() and make SDL_getenv() thread-safe on Windows.
This commit is contained in:
parent
ef21e31a9a
commit
29f0fd33dc
14 changed files with 88 additions and 95 deletions
|
@ -546,7 +546,7 @@ static int stdlib_getsetenv(void *arg)
|
|||
char *value2;
|
||||
char *expected;
|
||||
int overwrite;
|
||||
char *text;
|
||||
const char *text;
|
||||
|
||||
/* Create a random name. This tests SDL_getenv, since we need to */
|
||||
/* make sure the variable is not set yet (it shouldn't). */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue