X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/df5168c427b51f1ab2b3200a5c8f7626b3d24aae..421a84317fc3d53ac4fd64613f1af2d19018efc5:/include/wx/apptrait.h diff --git a/include/wx/apptrait.h b/include/wx/apptrait.h index efd605f499..edce5bb945 100644 --- a/include/wx/apptrait.h +++ b/include/wx/apptrait.h @@ -90,6 +90,8 @@ public: // include the platform-specific version of the class // ---------------------------------------------------------------------------- +// NB: test for __UNIX__ before __WXMAC__ as under Darwin we want to use the +// Unix code (and otherwise __UNIX__ wouldn't be defined) #if defined(__WXMSW__) #include "wx/msw/apptbase.h" #elif defined(__UNIX__) @@ -97,7 +99,6 @@ public: #elif defined(__WXMAC__) #include "wx/mac/apptbase.h" #else // no platform-specific methods to add to wxAppTraits - typedef // wxAppTraits must be a class because it was forward declared as class class WXDLLIMPEXP_BASE wxAppTraits : public wxAppTraitsBase {