From: Václav Slavík Date: Thu, 20 Mar 2008 15:06:14 +0000 (+0000) Subject: compilation fix for wxUSE_GUI=0 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7c08b47173a8dfcdc8af7349bd708c9b84b1d636 compilation fix for wxUSE_GUI=0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/defs.h b/include/wx/defs.h index 87b0f82d3e..1a7e0ff56e 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -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