Date: 2013-05-21 09:47:02 +0000 (Tue, 21 May 2013)
Prevented macro redefinitions in VC++.
This should be a bit more robust against inclusions of standard
headers before or after QuantLib headers.
--- trunk/QuantLib/ql/mathconstants.hpp 2013-05-21 09:46:58 UTC (rev 18501)
+++ trunk/QuantLib/ql/mathconstants.hpp 2013-05-21 09:47:02 UTC (rev 18502)
@@ -118,5 +118,13 @@
#define M_INVLN2 1.4426950408889633870E0
+/* This should ensure that no macro are redefined if we happen to
+ include <math.h> again, whether or not we're using our macros
+ or theirs. We can't know in advance, since it depends on the
+ order of inclusion of headers in client code. */
+ #undef _USE_MATH_DEFINES
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Get latest updates about Open Source Projects, Conferences and News.