]> Creatis software - clitk.git/blobdiff - common/clitkPortability.h
_WIN32 is always defined and WIN32 maybe isn't, see
[clitk.git] / common / clitkPortability.h
index 7fae01ec9916e31e303465a95685e7fa46d9b0db..3671066fce427e26fb789cb3311865b8c1e32287 100644 (file)
 ===========================================================================**/
 #ifndef CLITKPORTABILITY_H
 #define CLITKPORTABILITY_H
-#if defined(WIN32)
+#if defined(_WIN32)
 #  define _USE_MATH_DEFINES //Before math.h include (i.e. cmath)
 #endif
 #include <cmath>
 
-#if defined(WIN32)
+#if defined(_WIN32)
 #  define rint(x)  floor(x+0.5)
 #  define lrint(x) (long)rint(x) 
 #endif