src/SDL_internal.h
changeset 10604 27d0fb08d755
parent 9998 f67cf37e9cd4
child 10607 264f6495d712
     1.1 --- a/src/SDL_internal.h	Fri Nov 11 12:41:06 2016 -0800
     1.2 +++ b/src/SDL_internal.h	Fri Nov 11 13:14:00 2016 -0800
     1.3 @@ -21,6 +21,15 @@
     1.4  #ifndef _SDL_internal_h
     1.5  #define _SDL_internal_h
     1.6  
     1.7 +/* Many of SDL's features require _GNU_SOURCE on various platforms
     1.8 +   You can turn this off if necessary by using -D_GNU_SOURCE=0
     1.9 + */
    1.10 +#ifndef _GNU_SOURCE
    1.11 +#define _GNU_SOURCE
    1.12 +#elif !_GNU_SOURCE
    1.13 +#undef _GNU_SOURCE
    1.14 +#endif
    1.15 +
    1.16  #include "dynapi/SDL_dynapi.h"
    1.17  
    1.18  #if SDL_DYNAMIC_API
    1.19 @@ -33,6 +42,6 @@
    1.20  
    1.21  #include "SDL_config.h"
    1.22  
    1.23 -#endif
    1.24 +#endif /* _SDL_internal_h */
    1.25  
    1.26  /* vi: set ts=4 sw=4 expandtab: */