]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for wxUSE_GUI=0
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 20 Mar 2008 15:06:14 +0000 (15:06 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 20 Mar 2008 15:06:14 +0000 (15:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h

index 87b0f82d3e287cf23480dddf6297fb3d830779a1..1a7e0ff56eb9bf2d45a47c9b669531931bd38569 100644 (file)
@@ -2009,7 +2009,7 @@ enum
 /*  (or else they would be always different!). Using wxGetWindowId() which does */
 /*  the cast itself is recommended. Note that this type can't be unsigned */
 /*  because wxID_ANY == -1 is a valid (and largely used) value for window id. */
-#ifdef __cplusplus
+#if defined(__cplusplus) && wxUSE_GUI
     #include "wx/windowid.h"
 #endif