Use __WINDOWS__ for OS checks and __WXMSW__ for GUI checks (round 2).
This is continuation of r70796 and serves the same purpose. Closes #14065, #14066. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -43,7 +43,7 @@ inline wxUint32 wxAtomicDec (wxUint32 &value)
|
||||
}
|
||||
|
||||
|
||||
#elif defined(__WXMSW__)
|
||||
#elif defined(__WINDOWS__)
|
||||
|
||||
// include standard Windows headers
|
||||
#include "wx/msw/wrapwin.h"
|
||||
|
@@ -22,7 +22,7 @@
|
||||
|
||||
// under Windows we prefer to use the native implementation but can be forced
|
||||
// to use the file-based one
|
||||
#if defined(__WXMSW__) && wxUSE_CONFIG_NATIVE
|
||||
#if defined(__WINDOWS__) && wxUSE_CONFIG_NATIVE
|
||||
#include "wx/msw/regconf.h"
|
||||
#define wxConfig wxRegConfig
|
||||
#elif defined(__WXOS2__) && wxUSE_CONFIG_NATIVE
|
||||
|
@@ -22,10 +22,10 @@ WX_DECLARE_USER_EXPORTED_LIST(wxDDEClient, wxDDEClientList, WXDLLIMPEXP_BASE);
|
||||
WX_DECLARE_USER_EXPORTED_LIST(wxDDEServer, wxDDEServerList, WXDLLIMPEXP_BASE);
|
||||
WX_DECLARE_USER_EXPORTED_LIST(wxDDEConnection, wxDDEConnectionList, WXDLLIMPEXP_BASE);
|
||||
|
||||
#if defined(__WXMSW__)
|
||||
#if defined(__WINDOWS__)
|
||||
#include "wx/msw/dde.h"
|
||||
#else
|
||||
#error DDE is only supported on MSW
|
||||
#error DDE is only supported under Windows
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@@ -39,9 +39,9 @@ private:
|
||||
wxString m_filename;
|
||||
};
|
||||
|
||||
// under MSW the same file may contain several icons so we also store the
|
||||
// under Windows the same file may contain several icons so we also store the
|
||||
// index of the icon
|
||||
#if defined(__WXMSW__)
|
||||
#if defined(__WINDOWS__)
|
||||
|
||||
class WXDLLIMPEXP_BASE wxIconLocation : public wxIconLocationBase
|
||||
{
|
||||
@@ -65,7 +65,7 @@ wxIconLocation::wxIconLocation(const wxString& file, int num)
|
||||
SetIndex(num);
|
||||
}
|
||||
|
||||
#else // !MSW
|
||||
#else // !__WINDOWS__
|
||||
|
||||
// must be a class because we forward declare it as class
|
||||
class WXDLLIMPEXP_BASE wxIconLocation : public wxIconLocationBase
|
||||
|
@@ -16,7 +16,7 @@
|
||||
|
||||
#if wxUSE_JOYSTICK
|
||||
|
||||
#if defined(__WXMSW__)
|
||||
#if defined(__WINDOWS__)
|
||||
#include "wx/msw/joystick.h"
|
||||
#elif defined(__WXMOTIF__)
|
||||
#include "wx/unix/joystick.h"
|
||||
|
@@ -28,7 +28,7 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxListCtrlNameStr[];
|
||||
// include the wxListCtrl class declaration
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#if defined(__WIN32__) && !defined(__WXUNIVERSAL__)
|
||||
#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
|
||||
#include "wx/msw/listctrl.h"
|
||||
#elif defined(__WXMAC__) && !defined(__WXUNIVERSAL__) && wxOSX_USE_CARBON
|
||||
#include "wx/osx/listctrl.h"
|
||||
|
@@ -234,7 +234,7 @@ protected:
|
||||
#if defined(__WXUNIVERSAL__)
|
||||
#define wxStatusBarUniv wxStatusBar
|
||||
#include "wx/univ/statusbr.h"
|
||||
#elif defined(__WIN32__) && wxUSE_NATIVE_STATUSBAR
|
||||
#elif defined(__WXMSW__) && wxUSE_NATIVE_STATUSBAR
|
||||
#include "wx/msw/statusbar.h"
|
||||
#elif defined(__WXMAC__)
|
||||
#define wxStatusBarMac wxStatusBar
|
||||
|
Reference in New Issue
Block a user