From f854ecb5a8bc051381440c68b35ce696db8079bc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 12 Oct 2011 11:20:15 +0000 Subject: [PATCH] Move wxUSE_GUI definition from chkconf.h to the top of platform.h. This avoids warnings about wxUSE_GUI not being defined in Mac tests in wx/platform.h which are now (since r69387) done before wx/chkconf.h inclusion. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/chkconf.h | 5 ----- include/wx/platform.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/wx/chkconf.h b/include/wx/chkconf.h index cbe16ae..5552f05 100644 --- a/include/wx/chkconf.h +++ b/include/wx/chkconf.h @@ -57,11 +57,6 @@ global features */ -/* GUI build by default */ -#if !defined(wxUSE_GUI) -# define wxUSE_GUI 1 -#endif /* !defined(wxUSE_GUI) */ - /* If we're compiling without support for threads/exceptions we have to disable the corresponding features. diff --git a/include/wx/platform.h b/include/wx/platform.h index 3f2dbab..6f2601f 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -14,6 +14,11 @@ #ifndef _WX_PLATFORM_H_ #define _WX_PLATFORM_H_ +/* GUI build by default */ +#if !defined(wxUSE_GUI) +# define wxUSE_GUI 1 +#endif /* !defined(wxUSE_GUI) */ + /* Codewarrior doesn't define any Windows symbols until some headers -- 2.7.4