diff --git a/test_common/harness/compat.h b/test_common/harness/compat.h index dc8468ff..660ed049 100644 --- a/test_common/harness/compat.h +++ b/test_common/harness/compat.h @@ -117,16 +117,16 @@ typedef long long int64_t; #include #endif +#ifndef M_PI + #define M_PI 3.14159265358979323846264338327950288 +#endif + #if defined( _MSC_VER ) #ifdef __cplusplus extern "C" { #endif - #ifndef M_PI - #define M_PI 3.14159265358979323846264338327950288 - #endif - #ifndef NAN #define NAN (INFINITY - INFINITY) #endif