From fa3f11806ebba9d9e3755744f0e0d99fd16f7bd8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 20 Jun 2012 17:54:53 +0000 Subject: [PATCH] Use wx/msw/winundef.h for wxGTK under Windows too. Avoid clashes due to definitions in wxGTK too. Closes #14427. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/afterstd.h | 2 +- include/wx/defs.h | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/wx/afterstd.h b/include/wx/afterstd.h index 107d594eff..890342c8a0 100644 --- a/include/wx/afterstd.h +++ b/include/wx/afterstd.h @@ -13,7 +13,7 @@ See the comments in beforestd.h. */ -#if defined(__WXMSW__) +#if defined(__WINDOWS__) #include "wx/msw/winundef.h" #endif diff --git a/include/wx/defs.h b/include/wx/defs.h index 87f0e4ec2b..afa6f775e8 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -30,7 +30,7 @@ #ifdef __cplusplus /* Make sure the environment is set correctly */ # if defined(__WXMSW__) && defined(__X__) -# error "Target can't be both X and Windows" +# error "Target can't be both X and MSW" # elif !defined(__WXMOTIF__) && \ !defined(__WXMSW__) && \ !defined(__WXGTK__) && \ @@ -3018,7 +3018,9 @@ typedef void * WXDRAWITEMSTRUCT; typedef void * WXMEASUREITEMSTRUCT; typedef void * WXLPCREATESTRUCT; +#ifdef __WXMSW__ typedef WXHWND WXWidget; +#endif #ifdef __WIN64__ typedef unsigned __int64 WXWPARAM; @@ -3254,9 +3256,9 @@ typedef const void* WXWidget; /* included before or after wxWidgets classes, and therefore must be */ /* disabled here before any significant wxWidgets headers are included. */ #ifdef __cplusplus -#ifdef __WXMSW__ +#ifdef __WINDOWS__ #include "wx/msw/winundef.h" -#endif /* __WXMSW__ */ +#endif /* __WINDOWS__ */ #endif /* __cplusplus */