X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/33a65a90c9d0e2ab121e1da9c3efedaf9e6a9789..469f64384dc7d3266f40cb1a0afafd4df1abb6e8:/lib/quad_tile/quad_tile.h diff --git a/lib/quad_tile/quad_tile.h b/lib/quad_tile/quad_tile.h index f868ff515..86fa1802d 100644 --- a/lib/quad_tile/quad_tile.h +++ b/lib/quad_tile/quad_tile.h @@ -1,6 +1,6 @@ #include -inline unsigned int xy2tile(unsigned int x, unsigned int y) +static inline unsigned int xy2tile(unsigned int x, unsigned int y) { unsigned int tile = 0; int i; @@ -14,12 +14,12 @@ inline unsigned int xy2tile(unsigned int x, unsigned int y) return tile; } -inline unsigned int lon2x(double lon) +static inline unsigned int lon2x(double lon) { return round((lon + 180.0) * 65535.0 / 360.0); } -inline unsigned int lat2y(double lat) +static inline unsigned int lat2y(double lat) { return round((lat + 90.0) * 65535.0 / 180.0); }