From d22004c4f4cc39c10605943572251c72061e28ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Wed, 23 Jun 2004 15:01:33 +0000 Subject: [PATCH] Make some long #ifs shorter but multiline so diffs of other ports are more readable. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/bitmap.h | 6 +++++- include/wx/encinfo.h | 6 +++++- include/wx/fontdlg.h | 9 +++++++-- include/wx/gdicmn.h | 7 ++++++- include/wx/wxprec.h | 9 ++++++++- 5 files changed, 31 insertions(+), 6 deletions(-) diff --git a/include/wx/bitmap.h b/include/wx/bitmap.h index 30995d29fd..8c34a26f7e 100644 --- a/include/wx/bitmap.h +++ b/include/wx/bitmap.h @@ -32,7 +32,11 @@ class WXDLLEXPORT wxImage; class WXDLLEXPORT wxMask; class WXDLLEXPORT wxPalette; -#if defined(__WXMGL__) || defined(__WXMAC__) || defined(__WXCOCOA__) || defined(__WXMOTIF__) || defined(__WXX11__) +#if defined(__WXMGL__) || \ + defined(__WXMAC__) || \ + defined(__WXCOCOA__) || \ + defined(__WXMOTIF__) || \ + defined(__WXX11__) // Only used by some ports // FIXME -- make all ports (but MSW which uses wxGDIImage) use these base classes diff --git a/include/wx/encinfo.h b/include/wx/encinfo.h index 859a63a766..7013ba60b1 100644 --- a/include/wx/encinfo.h +++ b/include/wx/encinfo.h @@ -37,7 +37,11 @@ struct WXDLLEXPORT wxNativeEncodingInfo wxString facename; // may be empty meaning "any" wxFontEncoding encoding; // so that we know what this struct represents -#if defined(__WXMSW__) || defined(__WXPM__) || defined(__WXMAC__) || defined(__WXCOCOA__) // FIXME: __WXCOCOA__ +#if defined(__WXMSW__) || \ + defined(__WXPM__) || \ + defined(__WXMAC__) || \ + defined(__WXCOCOA__) // FIXME: __WXCOCOA__ + wxNativeEncodingInfo() : facename() , encoding(wxFONTENCODING_SYSTEM) diff --git a/include/wx/fontdlg.h b/include/wx/fontdlg.h index a10a93098b..43bc4e5ca3 100644 --- a/include/wx/fontdlg.h +++ b/include/wx/fontdlg.h @@ -65,8 +65,13 @@ protected: // platform-specific wxFontDialog implementation // ---------------------------------------------------------------------------- -#if defined(__WXUNIVERSAL__) || defined(__WXMOTIF__) || defined(__WXMAC__) || defined(__WXCOCOA__) \ - || defined(__WXWINCE__) || defined(__WXGPE__) +#if defined(__WXUNIVERSAL__) || \ + defined(__WXMOTIF__) || \ + defined(__WXMAC__) || \ + defined(__WXCOCOA__) || \ + defined(__WXWINCE__) || \ + defined(__WXGPE__) + #include "wx/generic/fontdlgg.h" #define wxFontDialog wxGenericFontDialog #elif defined(__WXMSW__) diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index 029ce3def3..4147c63074 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -182,7 +182,12 @@ enum wxStockCursor #if defined(__WXMSW__) || defined(__WXPM__) #define wxBITMAP(name) wxBitmap(wxT(#name), wxBITMAP_TYPE_RESOURCE) -#elif defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXX11__) || defined(__WXMAC__) || defined(__WXMGL__) || defined(__WXCOCOA__) +#elif defined(__WXGTK__) || \ + defined(__WXMOTIF__) || \ + defined(__WXX11__) || \ + defined(__WXMAC__) || \ + defined(__WXMGL__) || \ + defined(__WXCOCOA__) // Initialize from an included XPM #define wxBITMAP(name) wxBitmap( (const char**) name##_xpm ) #else // other platforms diff --git a/include/wx/wxprec.h b/include/wx/wxprec.h index f0dd44e107..b05ad2b35c 100644 --- a/include/wx/wxprec.h +++ b/include/wx/wxprec.h @@ -14,7 +14,14 @@ // check if to use precompiled headers: do it for most Windows compilers unless // explicitly disabled by defining NOPCH -#if ((defined(__BORLANDC__) || defined(__VISUALC__) || defined(__DIGITALMARS__) || defined(__WATCOMC__)) && defined(__WXMSW__)) || defined(__VISAGECPP__) || defined(__MWERKS__) +#if ( defined(__WXMSW__) && \ + ( defined(__BORLANDC__) || \ + defined(__VISUALC__) || \ + defined(__DIGITALMARS__) || \ + defined(__WATCOMC__) ) ) || \ + defined(__VISAGECPP__) || \ + defined(__MWERKS__) + #if !defined(NOPCH) #define WX_PRECOMP #endif -- 2.45.2