Mercator
0.4.0
Mercator
iround.h
1
// This file may be redistributed and modified only under the terms of
2
// the GNU General Public License (See COPYING for details).
3
// Copyright (C) 2003 Alistair Riddoch
4
5
#ifndef MERCATOR_IROUND_H
6
#define MERCATOR_IROUND_H
7
8
// std::lround is missing on Android: https://code.google.com/p/android/issues/detail?id=54418
9
#ifdef __ANDROID__
10
#include <cmath>
11
#define I_ROUND(_x) (lroundf(_x))
12
#else
13
#include <cmath>
14
#define I_ROUND(_x) (std::lround(_x))
15
#endif
16
17
#endif // MERCATOR_IROUND_H
Generated by
1.8.13