X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..3013b6f46099b8cf0d2f9f656e883e4606ca833d:/include/wx/wxprec.h?ds=sidebyside diff --git a/include/wx/wxprec.h b/include/wx/wxprec.h index 71018481a8..a5e0b4bce8 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(__GNUWIN32__)) && 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 +#ifndef __WXMAC__ #include +#endif #ifdef GetClassInfo #undef GetClassInfo @@ -57,5 +59,8 @@ #undef FindResource #endif +#else + // always include this file (under Unix it's generated by configure) + #include "wx/setup.h" #endif