From b9ae3bf095ce145ac9038a27b698caa4a6e999a9 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 22 Apr 2019 12:46:09 +0200 Subject: [PATCH] include/msvcrt: Define math constants by default, for compatibility with Mingw. Signed-off-by: Alexandre Julliard --- include/msvcrt/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/msvcrt/math.h b/include/msvcrt/math.h index c2e61b7b5ee..f8b2add56e2 100644 --- a/include/msvcrt/math.h +++ b/include/msvcrt/math.h @@ -195,7 +195,7 @@ short __cdecl _dclass(double); #include -#ifdef _USE_MATH_DEFINES +#if !defined(__STRICT_ANSI__) || defined(_POSIX_C_SOURCE) || defined(_POSIX_SOURCE) || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_USE_MATH_DEFINES) #ifndef _MATH_DEFINES_DEFINED #define _MATH_DEFINES_DEFINED #define M_E 2.71828182845904523536