2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Fixed Xcode build, improved project folders (similar to MSVC), warnings fixed.

This commit is contained in:
John Preston
2016-04-14 16:03:03 +03:00
parent 971ec71836
commit 246e39adb1
10 changed files with 195 additions and 372 deletions

View File

@@ -21,13 +21,30 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
#define NOMINMAX // no min() and max() macro declarations
#define __HUGE
#define __STDC_FORMAT_MACROS // fix breakpad for mac
// Fix Google Breakpad build for Mac App Store version
#ifdef Q_OS_MAC
#define __STDC_FORMAT_MACROS
#endif // Q_OS_MAC
#ifdef __cplusplus
#include <cmath>
// False positive warning in clang for QMap member function value:
// const T QMap<Key, T>::value(const Key &akey, const T &adefaultValue)
// fires with "Returning address of local temporary object" which is not true.
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wreturn-stack-address"
#endif // __clang__
#include <QtCore/QtCore>
#ifdef __clang__
#pragma clang diagnostic pop
#endif // __clang__
#include <QtWidgets/QtWidgets>
#include <QtNetwork/QtNetwork>