include/SDL_stdinc.h
changeset 8316 88f011703f39
parent 6138 4c64952a58fb
child 8337 4a67a3cca43d
     1.1 --- a/include/SDL_stdinc.h	Mon Oct 15 22:25:08 2012 -0400
     1.2 +++ b/include/SDL_stdinc.h	Wed Oct 17 21:43:20 2012 -0400
     1.3 @@ -72,6 +72,13 @@
     1.4  # include <ctype.h>
     1.5  #endif
     1.6  #ifdef HAVE_MATH_H
     1.7 +# if defined(__WINRT__)
     1.8 +/* Defining _USE_MATH_DEFINES is required to get M_PI to be defined on
     1.9 +   Windows RT.  See http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
    1.10 +   for more information.
    1.11 +*/
    1.12 +#  define _USE_MATH_DEFINES
    1.13 +# endif
    1.14  # include <math.h>
    1.15  #endif
    1.16  #if defined(HAVE_ICONV) && defined(HAVE_ICONV_H)