diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2016-08-22 23:25:27 +0200 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2016-08-22 23:25:27 +0200 |
| commit | 6a921265db9ff12a263ff1a88118a69a65b7a2df (patch) | |
| tree | f74f79b400855cd014cd0e91e2a9c0e0c43235a3 /src/projects.h | |
| parent | e103f3f962e5ddc6c837f4b8b0bcdc437b5f52d1 (diff) | |
| download | PROJ-6a921265db9ff12a263ff1a88118a69a65b7a2df.tar.gz PROJ-6a921265db9ff12a263ff1a88118a69a65b7a2df.zip | |
Changed self-test build behaviour from opt-out to opt-in
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. |
