summaryrefslogtreecommitdiff
path: root/src/geohash_helper.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-07-06 16:31:11 +0200
committerantirez <antirez@gmail.com>2016-07-06 16:31:11 +0200
commit504ccad1fa018b2b432eda092bd536134ee6b39f (patch)
tree16c7523ee11e9809a5be517df576bcbf491c5b82 /src/geohash_helper.c
parenteaa713e93b6aadf08fda33238670cd3577a7db52 (diff)
downloadredis-504ccad1fa018b2b432eda092bd536134ee6b39f.tar.gz
Fix definition of M_PI in geohash_helper.c.
Without the right feature macros M_PI is not defined in math.h.
Diffstat (limited to 'src/geohash_helper.c')
-rw-r--r--src/geohash_helper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/geohash_helper.c b/src/geohash_helper.c
index da8833fa8..585d1005b 100644
--- a/src/geohash_helper.c
+++ b/src/geohash_helper.c
@@ -34,7 +34,9 @@
* https://github.com/yinqiwen/ardb/blob/d42503/src/geo/geohash_helper.cpp
*/
+#include "fmacros.h"
#include "geohash_helper.h"
+#include <math.h>
#define D_R (M_PI / 180.0)
#define R_MAJOR 6378137.0