X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..ab8884aca6f480f3568167c7fe592a03e7e102b2:/include/wx/wxprec.h diff --git a/include/wx/wxprec.h b/include/wx/wxprec.h index 71018481a8..b7c00c4f70 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 +#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