aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEtienne Jacques <etienne.rtp@gmail.com>2017-02-10 22:16:10 -0800
committerEtienne Jacques <etienne.rtp@gmail.com>2017-02-10 22:16:10 -0800
commit130c559e83c6dedc94b820411a9e9d0995c6bcc0 (patch)
tree4ce40ff7e7d5bde8c5da3f99e59b470b666b062e /src
parent442f439a6d3a8752834c365e0c195d3c9e5a042f (diff)
downloadPROJ-130c559e83c6dedc94b820411a9e9d0995c6bcc0.tar.gz
PROJ-130c559e83c6dedc94b820411a9e9d0995c6bcc0.zip
Fix compilation with gcc with -std=c11 option.
Diffstat (limited to 'src')
-rw-r--r--src/projects.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/projects.h b/src/projects.h
index 33af9ca7..f64d1a4f 100644
--- a/src/projects.h
+++ b/src/projects.h
@@ -105,6 +105,12 @@ extern double hypot(double, double);
#define M_PI 3.14159265358979310
#define M_PI_2 1.57079632679489660
#define M_PI_4 0.78539816339744828
+#define M_2_PI 0.63661977236758134308
+#endif
+
+/* M_SQRT2 might be missing */
+#ifndef M_SQRT2
+#define M_SQRT2 1.41421356237309504880
#endif
/* some more useful math constants and aliases */