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:
@@ -55,7 +55,7 @@
|
||||
#include "wx/osx/private.h" // includes mac headers
|
||||
#endif
|
||||
|
||||
#ifdef __WXMSW__
|
||||
#ifdef __WINDOWS__
|
||||
#include <windows.h>
|
||||
#include "wx/msw/winundef.h"
|
||||
#include "wx/volume.h"
|
||||
@@ -71,7 +71,7 @@
|
||||
#include <ctype.h>
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif // __WINDOWS__
|
||||
|
||||
#if defined(__OS2__) || defined(__DOS__)
|
||||
#ifdef __OS2__
|
||||
@@ -310,7 +310,7 @@ int setdrive(int WXUNUSED_IN_WINCE(drive))
|
||||
#else
|
||||
newdrive[2] = wxT('\0');
|
||||
#endif
|
||||
#if defined(__WXMSW__)
|
||||
#if defined(__WINDOWS__)
|
||||
if (::SetCurrentDirectory(newdrive))
|
||||
#else
|
||||
// VA doesn't know what LPSTR is and has its own set
|
||||
@@ -1170,7 +1170,7 @@ void wxGenericDirCtrl::FindChildFiles(wxTreeItemId treeid, int dirFlags, wxArray
|
||||
|
||||
wxString dirName(data->m_path);
|
||||
|
||||
#if defined(__WXMSW__) || defined(__OS2__)
|
||||
#if defined(__WINDOWS__) || defined(__OS2__)
|
||||
if (dirName.Last() == ':')
|
||||
dirName += wxString(wxFILE_SEP_PATH);
|
||||
#endif
|
||||
@@ -1572,7 +1572,7 @@ wxImageList *wxFileIconsTable::GetSmallImageList()
|
||||
return m_smallImageList;
|
||||
}
|
||||
|
||||
#if wxUSE_MIMETYPE && wxUSE_IMAGE && (!defined(__WXMSW__) || wxUSE_WXDIB)
|
||||
#if wxUSE_MIMETYPE && wxUSE_IMAGE && (!defined(__WINDOWS__) || wxUSE_WXDIB)
|
||||
// VS: we don't need this function w/o wxMimeTypesManager because we'll only have
|
||||
// one icon and we won't resize it
|
||||
|
||||
@@ -1732,7 +1732,7 @@ int wxFileIconsTable::GetIconID(const wxString& extension, const wxString& mime)
|
||||
{
|
||||
m_smallImageList->Add(bmp);
|
||||
}
|
||||
#if wxUSE_IMAGE && (!defined(__WXMSW__) || wxUSE_WXDIB)
|
||||
#if wxUSE_IMAGE && (!defined(__WINDOWS__) || wxUSE_WXDIB)
|
||||
else
|
||||
{
|
||||
wxImage img = bmp.ConvertToImage();
|
||||
|
Reference in New Issue
Block a user