Skip to content
Snippets Groups Projects
Commit 5cf36c5d authored by Bertrand Bellenot's avatar Bertrand Bellenot
Browse files

Fix math include for constants definitions on Windows

parent 79b5129e
No related branches found
No related tags found
No related merge requests found
...@@ -13,16 +13,14 @@ ...@@ -13,16 +13,14 @@
#ifndef ROOT_Math_Math #ifndef ROOT_Math_Math
#define ROOT_Math_Math #define ROOT_Math_Math
#ifdef _WIN32 #ifdef _MSC_VER
#define _USE_MATH_DEFINES #define _USE_MATH_DEFINES
#define HAVE_NO_LOG1P
#define HAVE_NO_EXPM1
#endif #endif
#include <cmath> #include <cmath>
#if defined(__sun) #if defined(__sun) || defined(_MSC_VER)
//solaris definition of cmath does not include math.h which has the definitions of numerical constants //Microsoft and solaris definition of cmath does not include math.h which has the definitions of numerical constants
#include <math.h> #include <math.h>
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment