Unity build fails with MinGW
parent
8231b40dd7
commit
a279c60aa8
|
@ -32,6 +32,8 @@
|
|||
#include <TGUI/Widgets/ChildWindow.hpp>
|
||||
#include <TGUI/Renderers/MessageBoxRenderer.hpp>
|
||||
|
||||
#undef MessageBox // Windows.h defines MessageBox when NOMB isn't defined before including Windows.h
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
namespace tgui
|
||||
|
|
|
@ -32,8 +32,10 @@
|
|||
#include <cassert>
|
||||
|
||||
#ifdef SFML_SYSTEM_WINDOWS
|
||||
#ifndef NOMINMAX // MinGW already defines this which causes a warning without this check
|
||||
#define NOMINMAX
|
||||
#endif
|
||||
#define NOMB
|
||||
#define NOMINMAX
|
||||
#define VC_EXTRALEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <Windows.h>
|
||||
|
|
Loading…
Reference in New Issue