Patched stdlib changes to compile on Windows.

This commit is contained in:
Ryan C. Gordon
2013-12-09 13:30:35 -05:00
parent b72c8bcaf8
commit 31caa22d30
3 changed files with 5 additions and 4 deletions

View File

@@ -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

View File

@@ -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;