From: <jo...@us...> - 2014-05-09 10:41:38
|
Revision: 6617 http://sourceforge.net/p/mingw-w64/code/6617 Author: jon_y Date: 2014-05-09 10:41:31 +0000 (Fri, 09 May 2014) Log Message: ----------- math.h change: add the _USE_MATH_DEFINES flag By Patrick Spendrin <ps...@gm...> according to the msdn documentation http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx _USE_MATH_DEFINES should give constants like M_PI etc. This patch adds it. regards, Patrick Modified Paths: -------------- trunk/mingw-w64-headers/crt/math.h Modified: trunk/mingw-w64-headers/crt/math.h =================================================================== --- trunk/mingw-w64-headers/crt/math.h 2014-05-08 18:50:24 UTC (rev 6616) +++ trunk/mingw-w64-headers/crt/math.h 2014-05-09 10:41:31 UTC (rev 6617) @@ -36,7 +36,7 @@ #endif #endif -#if !defined(__STRICT_ANSI__) || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#if !defined(__STRICT_ANSI__) || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_USE_MATH_DEFINES) #define M_E 2.7182818284590452354 #define M_LOG2E 1.4426950408889634074 #define M_LOG10E 0.43429448190325182765 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |