src/stdlib/SDL_getenv.c
changeset 7828 1451063c8ecd
parent 7351 668a3dc28361
child 8092 46fb898f098d
     1.1 --- a/src/stdlib/SDL_getenv.c	Fri Oct 18 01:36:41 2013 -0400
     1.2 +++ b/src/stdlib/SDL_getenv.c	Thu Oct 17 23:02:29 2013 -0700
     1.3 @@ -20,10 +20,13 @@
     1.4  */
     1.5  #include "SDL_config.h"
     1.6  
     1.7 +#if defined(__WIN32__)
     1.8 +#include "../core/windows/SDL_windows.h"
     1.9 +#endif
    1.10 +
    1.11  #include "SDL_stdinc.h"
    1.12  
    1.13  #if !defined(SDL_setenv) && defined(__WIN32__)
    1.14 -#include "../core/windows/SDL_windows.h"
    1.15  /* Note this isn't thread-safe! */
    1.16  static char *SDL_envmem = NULL; /* Ugh, memory leak */
    1.17  static size_t SDL_envmemlen = 0;