mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Fixed MSVC & Qt5 compile issues
This commit is contained in:
parent
f93b54aab0
commit
b0cafe69d0
@ -6,11 +6,11 @@
|
|||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
|
|
||||||
#ifdef Q_OS_LINUX
|
#if defined(Q_OS_LINUX)
|
||||||
#define PLATFORM_STR "Linux"
|
#define PLATFORM_STR "Linux"
|
||||||
#elif Q_OS_WIN32
|
#elif defined(Q_OS_WIN32)
|
||||||
#define PLATFORM_STR "Windows"
|
#define PLATFORM_STR "Windows"
|
||||||
#elif Q_OS_MAC
|
#elif defined(Q_OS_MAC)
|
||||||
#define PLATFORM_STR "OS X"
|
#define PLATFORM_STR "OS X"
|
||||||
#else
|
#else
|
||||||
#define PLATFORM_STR "Unknown"
|
#define PLATFORM_STR "Unknown"
|
||||||
|
@ -1,9 +1,14 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "ll.h"
|
#include "ll.h"
|
||||||
|
|
||||||
|
// MSVC workarounds
|
||||||
#ifndef M_PI
|
#ifndef M_PI
|
||||||
#define M_PI 3.14159265358979323846
|
#define M_PI 3.14159265358979323846
|
||||||
#endif // M_PI
|
#endif // M_PI
|
||||||
|
#if defined(_MSC_VER) && (_MSC_VER < 1800)
|
||||||
|
#define log2(n) (log(n)/log(2.0))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define WGS84_RADIUS 6378137.0
|
#define WGS84_RADIUS 6378137.0
|
||||||
#define deg2rad(d) (((d)*M_PI)/180.0)
|
#define deg2rad(d) (((d)*M_PI)/180.0)
|
||||||
|
@ -28,7 +28,7 @@ QList<Map*> MapList::load(const QString &fileName)
|
|||||||
QByteArray ba2 = list[1].trimmed();
|
QByteArray ba2 = list[1].trimmed();
|
||||||
|
|
||||||
mapList.append(new Map(QString::fromUtf8(ba1.data(), ba1.size()),
|
mapList.append(new Map(QString::fromUtf8(ba1.data(), ba1.size()),
|
||||||
QString::fromAscii(ba2.data(), ba2.size())));
|
QString::fromLatin1(ba2.data(), ba2.size())));
|
||||||
|
|
||||||
ln++;
|
ln++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user