Rob Shearman : msvcmaker: Define _USE_MATH_DEFINES so that M_PI and other constants are defined when including <math.h>.
Alexandre Julliard
julliard at winehq.org
Tue Sep 30 11:15:32 CDT 2008
Module: wine
Branch: master
Commit: b1fccd9da9cd23bbb9ddfc36c1062c221159310f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b1fccd9da9cd23bbb9ddfc36c1062c221159310f
Author: Rob Shearman <robertshearman at gmail.com>
Date: Thu Sep 25 16:44:29 2008 +0100
msvcmaker: Define _USE_MATH_DEFINES so that M_PI and other constants are defined when including <math.h>.
---
tools/winapi/msvcmaker | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/winapi/msvcmaker b/tools/winapi/msvcmaker
index fc7d022..1fec041 100755
--- a/tools/winapi/msvcmaker
+++ b/tools/winapi/msvcmaker
@@ -627,7 +627,7 @@ sub _generate_dsp($$) {
print OUT " /c";
print OUT "\r\n";
- my @defines2 = qw(_CRT_SECURE_NO_DEPRECATE _CRT_NONSTDC_NO_DEPRECATE USE_COMPILER_EXCEPTIONS);
+ my @defines2 = qw(_CRT_SECURE_NO_DEPRECATE _CRT_NONSTDC_NO_DEPRECATE USE_COMPILER_EXCEPTIONS _USE_MATH_DEFINES);
if($debug) {
if($lib) {
print OUT "# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od";
More information about the wine-cvs
mailing list