From f2aa588ba5c2e316d87105da86e0ebe8bbeac5df Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 21 Apr 2004 21:03:02 +0000 Subject: [PATCH] applied patch 939076: __SMARTPHONE__ define git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/features.h | 8 -------- include/wx/msw/setup0.h | 3 --- include/wx/msw/wince/setup.h | 3 --- include/wx/platform.h | 7 +++++++ src/common/cmndata.cpp | 2 +- 5 files changed, 8 insertions(+), 15 deletions(-) diff --git a/include/wx/features.h b/include/wx/features.h index 89dde316d2..d4a19c9748 100644 --- a/include/wx/features.h +++ b/include/wx/features.h @@ -29,14 +29,6 @@ #undef wxHAS_RAW_KEY_CODES #endif -/* detect SmartPhone */ -#ifdef WIN32_PLATFORM_WFSP - #ifdef wxUSE_SMARTPHONE - #undef wxUSE_SMARTPHONE - #endif - #define wxUSE_SMARTPHONE 1 -#endif - /* taskbar is only implemented in wxMSW and X11 ports */ #if defined(__WXMSW__) || \ defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXX11__) diff --git a/include/wx/msw/setup0.h b/include/wx/msw/setup0.h index e3a05aec7e..6468dbb1ae 100644 --- a/include/wx/msw/setup0.h +++ b/include/wx/msw/setup0.h @@ -1070,9 +1070,6 @@ // (notably, wxNotebook pages) #define wxUSE_UXTHEME_AUTO 1 -// Set to 1 to if you're developing for MS SmartPhone -#define wxUSE_SMARTPHONE 0 - // ---------------------------------------------------------------------------- // obsolete settings // ---------------------------------------------------------------------------- diff --git a/include/wx/msw/wince/setup.h b/include/wx/msw/wince/setup.h index edd5317f25..a836f82a02 100644 --- a/include/wx/msw/wince/setup.h +++ b/include/wx/msw/wince/setup.h @@ -1061,9 +1061,6 @@ // (notably, wxNotebook pages) #define wxUSE_UXTHEME_AUTO 0 -// Set to 1 if you're developing for MS SmartPhone -#define wxUSE_SMARTPHONE 0 - // Set to 1 if you want to maintain a PocketPC-style UI on // Windows CE .NET. If 0, wxWindows will use a commandbar // for the menubar, and a normal separate toolbar as per the diff --git a/include/wx/platform.h b/include/wx/platform.h index 7d172e745a..df1f9cdcc1 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -117,6 +117,13 @@ # endif #endif /* WINE */ +/* detect SmartPhone */ +#if defined( WIN32_PLATFORM_WFSP ) +# ifndef __SMARTPHONE__ +# define __SMARTPHONE__ +# endif +#endif + /* Include wx/setup.h for the Unix platform defines generated by configure and the library compilation options diff --git a/src/common/cmndata.cpp b/src/common/cmndata.cpp index 53667862aa..5f75393a5e 100644 --- a/src/common/cmndata.cpp +++ b/src/common/cmndata.cpp @@ -51,7 +51,7 @@ #include #include "wx/msw/private.h" - #if defined(__WXWINCE__) && !wxUSE_SMARTPHONE + #ifndef __SMARTPHONE__ #include #endif -- 2.47.2