Patched stdlib changes to compile on Windows.
--HG-- extra : rebase_source : a782472e239edc31e70be994953d4da5a55edd95
This commit is contained in:
parent
5a281a4fda
commit
1e82be1804
3 changed files with 5 additions and 4 deletions
|
@ -26,13 +26,12 @@
|
|||
|
||||
#include "SDL_stdinc.h"
|
||||
|
||||
#if !defined(SDL_setenv) && defined(__WIN32__)
|
||||
#if defined(__WIN32__) && (!defined(HAVE_SETENV) || !defined(HAVE_GETENV))
|
||||
/* Note this isn't thread-safe! */
|
||||
static char *SDL_envmem = NULL; /* Ugh, memory leak */
|
||||
static size_t SDL_envmemlen = 0;
|
||||
#endif
|
||||
|
||||
|
||||
/* Put a variable into the environment */
|
||||
#if defined(HAVE_SETENV)
|
||||
int
|
||||
|
|
|
@ -986,7 +986,7 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap)
|
|||
}
|
||||
#else
|
||||
int
|
||||
SDL_vsscanf(const char *text, const char *fmt, ...)
|
||||
SDL_vsscanf(const char *text, const char *fmt, va_list ap)
|
||||
{
|
||||
int retval = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue