Move to top and include qt_windows.h.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-11-15 09:51:31 +02:00
parent 477040c0b2
commit 36e839ed5d
4 changed files with 21 additions and 23 deletions

View File

@ -29,21 +29,16 @@
#ifndef OPTIONS_H
#define OPTIONS_H
#include <QtGlobal>
#ifdef Q_OS_WIN
# include <qt_windows.h>
#endif /*Q_OS_WIN*/
#include "../ifc/ifcdef.h"
#include "../vgeometry/vgeometrydef.h"
#include "../qmuparser/qmudef.h"
#include "../vmisc/def.h"
#ifdef Q_OS_WIN32
# if defined( Q_CC_MSVC ) // MSVC USED
# ifndef NOMINMAX
# define NOMINMAX // DISABLE min/max MACROS
# endif
# endif /*Q_CC_MSVC*/
# include <windows.h>
#endif /*Q_OS_WIN32*/
enum class Contour : char { OpenContour, CloseContour };
#endif // OPTIONS_H

View File

@ -29,9 +29,14 @@
#ifndef IFCDEF_H
#define IFCDEF_H
#include <QtGlobal>
#ifdef Q_OS_WIN
extern Q_CORE_EXPORT int qt_ntfs_permission_lookup;
# include <qt_windows.h>
#endif /*Q_OS_WIN*/
#include <QString>
#include <QStringList>
#include <QtGlobal>
#include "../vmisc/typedef.h"
#include "../vmisc/def.h"
@ -40,11 +45,6 @@
extern const QString CustomMSign;
extern const QString CustomIncrSign;
#ifdef Q_OS_WIN32
extern Q_CORE_EXPORT int qt_ntfs_permission_lookup;
#include <windows.h>
#endif /*Q_OS_WIN32*/
// Detect whether the compiler supports C++11 noexcept exception specifications.
# if defined(__clang__)
# if __has_feature(cxx_noexcept)

View File

@ -29,18 +29,19 @@
#ifndef DEF_H
#define DEF_H
#include <QtGlobal>
#ifdef Q_OS_WIN
# include <qt_windows.h>
#endif /*Q_OS_WIN*/
#include <qcompilerdetection.h>
#include <QPrinter>
#include <QString>
#include <QStringList>
#include <Qt>
#include <QtGlobal>
#include <csignal>
#include <QMargins>
#include <QLineF>
#ifdef Q_OS_WIN
#include <windows.h>
#endif /* Q_OS_WIN */
#include "literals.h"
#include "debugbreak.h"

View File

@ -30,6 +30,11 @@
#ifndef VLOCKGUARD_H
#define VLOCKGUARD_H
#include <QtGlobal>
#ifdef Q_OS_WIN
# include <qt_windows.h>
#endif /*Q_OS_WIN*/
#include <QString>
#include <stdint.h>
@ -38,9 +43,6 @@
#include <QFileInfo>
#include <QLockFile>
#include <QSharedPointer>
#if defined(Q_OS_WIN)
#include <windows.h>
#endif
/*@brief
* This class creates Guarded object if and only if lock file taken. It keeps shared_ptr to object and lock-file.