From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Wed, 12 Oct 2011 11:20:15 +0000 (+0000)
Subject: Move wxUSE_GUI definition from chkconf.h to the top of platform.h.
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f854ecb5a8bc051381440c68b35ce696db8079bc

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
---

diff --git a/include/wx/chkconf.h b/include/wx/chkconf.h
index cbe16ae778..5552f05d9f 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 3f2dbabbf5..6f2601ff46 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