include/SDL_stdinc.h
changeset 8583 fb2933ca805f
parent 8149 681eb46b8ac4
parent 8543 b9dd3cf38585
child 8820 0e935d5b193a
     1.1 --- a/include/SDL_stdinc.h	Sun Mar 09 10:38:30 2014 -0700
     1.2 +++ b/include/SDL_stdinc.h	Sun Mar 09 11:36:47 2014 -0700
     1.3 @@ -71,8 +71,18 @@
     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 +   WinRT.  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 +#ifdef HAVE_FLOAT_H
    1.17 +# include <float.h>
    1.18 +#endif
    1.19  #if defined(HAVE_ICONV) && defined(HAVE_ICONV_H)
    1.20  # include <iconv.h>
    1.21  #endif