mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
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:
parent
744940ffd5
commit
5db315b522
|
@ -19,6 +19,11 @@ TEMPLATE = app
|
|||
DEFINES += QT_DEPRECATED_WARNINGS
|
||||
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
|
||||
|
||||
SOURCES += main.cpp\
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef WINNATIVEWINDOW_H
|
||||
#define WINNATIVEWINDOW_H
|
||||
|
||||
#define NOMINMAX
|
||||
#include "Windows.h"
|
||||
#include "Windowsx.h"
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#include <boost/foreach.hpp>
|
||||
|
||||
#ifdef USEWINSDK
|
||||
#define NOMINMAX
|
||||
#include "Windows.h"
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue