Merge pull request #4889 from ligfx/netwindow
NetWindow: explicitly tell wxWidgets to clean up Windows macros
This commit is contained in:
commit
ecb7d01347
|
@ -14,6 +14,15 @@
|
||||||
#include "Core/NetPlayProto.h"
|
#include "Core/NetPlayProto.h"
|
||||||
#include "Core/NetPlayServer.h"
|
#include "Core/NetPlayServer.h"
|
||||||
|
|
||||||
|
// HACK: wxWidgets headers don't play well with some of the macros defined in Windows
|
||||||
|
// headers and perform their own magic to fix things, as long as they're included entirely
|
||||||
|
// either before or after any Windows headers.
|
||||||
|
//
|
||||||
|
// This file can cause a conflict in other DolphinWX files because NetPlay headers directly
|
||||||
|
// include ENet headers, which leak Windows header macros. To fix this, explicitly tell
|
||||||
|
// wxWidgets here that it needs to re-clean macros.
|
||||||
|
#include <wx/msw/winundef.h>
|
||||||
|
|
||||||
class CGameListCtrl;
|
class CGameListCtrl;
|
||||||
class MD5Dialog;
|
class MD5Dialog;
|
||||||
class wxButton;
|
class wxButton;
|
||||||
|
|
Loading…
Reference in New Issue