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:
@@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user