Преглед на файлове

Define _USE_MATH_DEFINES for Visual Studio (thanks @pionere!)

Fixes https://github.com/libsdl-org/SDL/issues/3790
Sam Lantinga преди 3 години
родител
ревизия
c6e8961979
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      include/SDL_stdinc.h

+ 2 - 2
include/SDL_stdinc.h

@@ -80,9 +80,9 @@
 # include <ctype.h>
 #endif
 #ifdef HAVE_MATH_H
-# if defined(__WINRT__)
+# if defined(_MSC_VER)
 /* Defining _USE_MATH_DEFINES is required to get M_PI to be defined on
-   WinRT.  See http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
+   Visual Studio.  See http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
    for more information.
 */
 #  define _USE_MATH_DEFINES