Fix definition of M_PI in geohash_helper.c.

Without the right feature macros M_PI is not defined in math.h.
This commit is contained in:
antirez 2016-07-06 16:31:11 +02:00
parent eaa713e93b
commit 504ccad1fa
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -32,7 +32,6 @@
#ifndef GEOHASH_HELPER_HPP_
#define GEOHASH_HELPER_HPP_
#include <math.h>
#include "geohash.h"
#define GZERO(s) s.bits = s.step = 0;