X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/978af864269a739e77d9431c8465435e3f8f7407..5713b34914d8216e1af3dce0373d10566a6d7ea3:/src/common/appbase.cpp diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index fed2b7aab3..40706d3aee 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -25,6 +25,9 @@ #endif #ifndef WX_PRECOMP + #ifdef __WXMSW__ + #include "wx/msw/wrapwin.h" // includes windows.h for MessageBox() + #endif #include "wx/list.h" #include "wx/app.h" #include "wx/intl.h" @@ -43,10 +46,6 @@ #include // for SIGTRAP used by wxTrap() #endif //Win/Unix -#if defined(__WXMSW__) - #include "wx/msw/wrapwin.h" // includes windows.h for MessageBox() -#endif - #if wxUSE_FONTMAP #include "wx/fontmap.h" #endif // wxUSE_FONTMAP @@ -224,7 +223,7 @@ wxLayoutDirection wxAppConsole::GetLayoutDirection() const { const wxLanguageInfo *const info = wxLocale::GetLanguageInfo(locale->GetLanguage()); - + if ( info ) return info->LayoutDirection; }