Alexandre Julliard : include/msvcrt: Define math constants by default, for compatibility with Mingw.
Alexandre Julliard
julliard at winehq.org
Tue Apr 23 17:39:53 CDT 2019
Module: wine
Branch: master
Commit: b9ae3bf095ce145ac9038a27b698caa4a6e999a9
URL: https://source.winehq.org/git/wine.git/?a=commit;h=b9ae3bf095ce145ac9038a27b698caa4a6e999a9
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Apr 22 12:46:09 2019 +0200
include/msvcrt: Define math constants by default, for compatibility with Mingw.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 c2e61b7..f8b2add 100644
--- a/include/msvcrt/math.h
+++ b/include/msvcrt/math.h
@@ -195,7 +195,7 @@ short __cdecl _dclass(double);
#include <poppack.h>
-#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
More information about the wine-cvs
mailing list