Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 59a05342 authored by Bernhard Beschow's avatar Bernhard Beschow

move constant definitions to central place

parent 2066735c
......@@ -22,6 +22,10 @@
// #define QT_STRICT_ITERATORS
/* M_PI is a #define that may or may not be handled in <cmath> */
#ifndef M_PI
#define M_PI 3.14159265358979323846264338327950288419717
#endif
namespace Marble
{
......@@ -245,6 +249,8 @@ const qreal SEC2MIN = 1.0 / MIN2SEC;
const qreal HOUR2SEC = 3600.0;
const qreal SEC2HOUR = 1.0 / HOUR2SEC;
const qreal TWOPI = 2 * M_PI;
// Version definitions to use with an external application (as digiKam)
// String for about dialog and http user agent
......
......@@ -25,10 +25,6 @@
#include <QDateTime>
#include <cmath>
// M_PI is sometimes defined in <cmath>
#ifndef M_PI
#define M_PI 3.14159265358979323846264338327950288419717
#endif
namespace Marble
{
......
......@@ -19,13 +19,6 @@
#include <QMetaType>
#include <QVector>
#include <cmath>
/* M_PI is a #define that may or may not be handled in <cmath> */
#ifndef M_PI
#define M_PI 3.14159265358979323846264338327950288419717
#endif
#include "geodata_export.h"
#include "MarbleGlobal.h"
......@@ -34,8 +27,6 @@ class QString;
namespace Marble
{
const qreal TWOPI = 2 * M_PI;
class GeoDataCoordinatesPrivate;
class Quaternion;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment