SDL: Define _USE_MATH_DEFINES for Visual Studio (thanks @pionere!) (2d580)

From 2d580f8f45df8b9bf40751f1a57aa383f6222eda Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 19 Oct 2022 08:05:47 -0700
Subject: [PATCH] Define _USE_MATH_DEFINES for Visual Studio (thanks @pionere!)

Fixes https://github.com/libsdl-org/SDL/issues/3790
(cherry-picked from commit c6e89619794ed6307f9efb0b242a2cdb605e1dc3)
---
 include/SDL_stdinc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h
index 5f79c95b3124..3514ba92628b 100644
--- a/include/SDL_stdinc.h
+++ b/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