From: Vadim Zeitlin Date: Thu, 4 Aug 2005 20:21:49 +0000 (+0000) Subject: define wxUSE_MFC as 0 if it's not defined (fixes gcc -Wundef warning) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/16f10340daf29ae98fc50bbc12a50faec884c676?hp=50aee613a3d3235f24a68e6d4a4d2420225643fd define wxUSE_MFC as 0 if it's not defined (fixes gcc -Wundef warning) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/chkconf.h b/include/wx/msw/chkconf.h index 85990ed350..e760e1f1f9 100644 --- a/include/wx/msw/chkconf.h +++ b/include/wx/msw/chkconf.h @@ -89,6 +89,12 @@ #endif /* __GNUWIN32__ */ +/* wxUSE_MFC is not defined when using configure as it doesn't make sense for + gcc or mingw32 anyhow */ +#ifndef wxUSE_MFC + #define wxUSE_MFC 0 +#endif /* !defined(wxUSE_MFC) */ + /* MFC duplicates these operators */ #if wxUSE_MFC # undef wxUSE_GLOBAL_MEMORY_OPERATORS