dont use windows min max macros (#37)
* windowmanager destructor free _mainwindow, fix save - remove const in settingsPath that is being written to from ptree tree * syntax error * remove destructor, _mainWindow does not need any special cleanup, let OS claim the resource * nominmax
This commit is contained in:
@@ -19,6 +19,11 @@ TEMPLATE = app
|
|||||||
DEFINES += QT_DEPRECATED_WARNINGS
|
DEFINES += QT_DEPRECATED_WARNINGS
|
||||||
DEFINES += IRC_NAMESPACE=Communi
|
DEFINES += IRC_NAMESPACE=Communi
|
||||||
|
|
||||||
|
# do not use windows min/max macros
|
||||||
|
win32 {
|
||||||
|
DEFINES += NOMINMAX
|
||||||
|
}
|
||||||
|
|
||||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||||
|
|
||||||
SOURCES += main.cpp\
|
SOURCES += main.cpp\
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#ifndef WINNATIVEWINDOW_H
|
#ifndef WINNATIVEWINDOW_H
|
||||||
#define WINNATIVEWINDOW_H
|
#define WINNATIVEWINDOW_H
|
||||||
|
|
||||||
#define NOMINMAX
|
|
||||||
#include "Windows.h"
|
#include "Windows.h"
|
||||||
#include "Windowsx.h"
|
#include "Windowsx.h"
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
|
|
||||||
#ifdef USEWINSDK
|
#ifdef USEWINSDK
|
||||||
#define NOMINMAX
|
|
||||||
#include "Windows.h"
|
#include "Windows.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user