wx: Move platform defines to wx setup header

Usually, this is passed as a preprocessor definition, but this is error
prone and just complicating the compiler invocation for no good reason.
This commit is contained in:
Florent Castelli
2017-02-03 22:59:34 +01:00
parent 834ec372cc
commit 5984ca26f3
3 changed files with 4 additions and 5 deletions

View File

@ -1,9 +1,12 @@
#ifdef __APPLE__
#define __WXMAC__
#define __WXOSX__
#define __WXOSX_COCOA__
#include "wx/wxcocoa.h"
#elif defined _WIN32
#define __WXMSW__
#include "wx/wxmsw.h"
#else
#define __WXGTK__
#include "wx/wxgtk.h"
#endif