diff options
Diffstat (limited to 'src/projects.h')
| -rw-r--r-- | src/projects.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/projects.h b/src/projects.h index ced5a4f0..5b883133 100644 --- a/src/projects.h +++ b/src/projects.h @@ -36,6 +36,8 @@ # ifndef _CRT_NONSTDC_NO_DEPRECATE # define _CRT_NONSTDC_NO_DEPRECATE # endif +/* enable predefined math constants M_* for MS Visual Studio workaround */ +# define _USE_MATH_DEFINES #endif /* standard inclusions */ @@ -93,11 +95,6 @@ extern double hypot(double, double); # define hypot _hypot #endif -/* enable predefined math constants M_* for MS Visual Studio workaround */ -#ifdef _MSC_VER -#define _USE_MATH_DEFINES -#endif - /* If we still haven't got M_PI*, we rely on our own defines. * For example, this is necessary when compiling with gcc and * the -ansi flag. |
