X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..a6e2157322eedc8142be3a24cb3fe26eb1e8a0e8:/include/wx/wxprec.h diff --git a/include/wx/wxprec.h b/include/wx/wxprec.h index 71018481a8..b1a93f2493 100644 --- a/include/wx/wxprec.h +++ b/include/wx/wxprec.h @@ -10,7 +10,7 @@ ///////////////////////////////////////////////////////////////////////////// // check if to use precompiled headers -#if (defined(__BORLANDC__) || defined(_MSC_VER) || defined(__WATCOMC__) || defined(__GNUWIN32__)) // && !defined(WXMAKINGDLL) +#if (defined(__BORLANDC__) || defined(_MSC_VER) || defined(__WATCOMC__)) && defined(__WXMSW__) #if !NOPCH #define WX_PRECOMP #endif @@ -27,7 +27,9 @@ // Comment this out if you don't mind slower compilation of the wxWindows // library +#if !defined(__WXMAC__) && !defined(__SALFORDC__) #include +#endif #ifdef GetClassInfo #undef GetClassInfo @@ -57,5 +59,12 @@ #undef FindResource #endif +#ifdef LoadAccelerators +#undef LoadAccelerators +#endif + +#else + // always include this file (under Unix it's generated by configure) + #include "wx/setup.h" #endif