]> Creatis software - clitk.git/commitdiff
*** empty log message ***
authorsrit <srit>
Tue, 9 Feb 2010 08:44:04 +0000 (08:44 +0000)
committersrit <srit>
Tue, 9 Feb 2010 08:44:04 +0000 (08:44 +0000)
common/clitkPortability.h

index 87de4e4a4b3931205a04b821d5a6ffe86815291d..ca16fcf5809fe5dd5d80c8f8da30a507edf92e24 100755 (executable)
@@ -1,12 +1,14 @@
 #ifndef CLITKPORTABILITY_H
 #define CLITKPORTABILITY_H
 
+#if defined(WIN32)
+#  define _USE_MATH_DEFINES //Before math.h include (i.e. cmath)
+#endif
 #include <cmath>
 
 #if defined(WIN32)
 #  define rint(x)  floor(x+0.5)
 #  define lrint(x) (long)rint(x) 
-#  define _USE_MATH_DEFINES
 #endif
 
 template<typename T>