src/stdlib/SDL_getenv.c
changeset 8092 46fb898f098d
parent 7828 1451063c8ecd
child 8093 b43765095a6f
     1.1 --- a/src/stdlib/SDL_getenv.c	Mon Nov 25 00:11:52 2013 -0500
     1.2 +++ b/src/stdlib/SDL_getenv.c	Mon Dec 09 13:30:35 2013 -0500
     1.3 @@ -26,13 +26,12 @@
     1.4  
     1.5  #include "SDL_stdinc.h"
     1.6  
     1.7 -#if !defined(SDL_setenv) && defined(__WIN32__)
     1.8 +#if defined(__WIN32__) && (!defined(HAVE_SETENV) || !defined(HAVE_GETENV))
     1.9  /* Note this isn't thread-safe! */
    1.10  static char *SDL_envmem = NULL; /* Ugh, memory leak */
    1.11  static size_t SDL_envmemlen = 0;
    1.12  #endif
    1.13  
    1.14 -
    1.15  /* Put a variable into the environment */
    1.16  #if defined(HAVE_SETENV)
    1.17  int