Removed old __WXWINE__ support (obsoleted by new __WINE__ symbol)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -56,11 +56,6 @@
|
||||
#include <commdlg.h>
|
||||
#endif // Win16
|
||||
|
||||
#ifdef __WXWINE__
|
||||
#include <cderr.h>
|
||||
#include <commdlg.h>
|
||||
#endif
|
||||
|
||||
#if defined(__WATCOMC__) || defined(__SC__) || defined(__SALFORDC__)
|
||||
#include <windowsx.h>
|
||||
#include <commdlg.h>
|
||||
@@ -485,10 +480,7 @@ void wxPrintData::ConvertToNative()
|
||||
|
||||
//// Orientation
|
||||
|
||||
#ifndef __WXWINE__
|
||||
devMode->dmOrientation = m_printOrientation;
|
||||
#endif
|
||||
devMode->dmFields = DM_ORIENTATION;
|
||||
|
||||
//// Collation
|
||||
|
||||
@@ -520,7 +512,6 @@ void wxPrintData::ConvertToNative()
|
||||
|
||||
devMode->dmFields |= DM_COLOR;
|
||||
|
||||
#ifndef __WXWINE__
|
||||
//// Paper size
|
||||
|
||||
if (m_paperId == wxPAPER_NONE)
|
||||
@@ -544,7 +535,6 @@ void wxPrintData::ConvertToNative()
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
//// Duplex
|
||||
|
||||
@@ -613,12 +603,10 @@ void wxPrintData::ConvertFromNative()
|
||||
{
|
||||
LPDEVMODE devMode = (LPDEVMODE)GlobalLock(hDevMode);
|
||||
|
||||
#ifndef __WXWINE__
|
||||
//// Orientation
|
||||
|
||||
if (devMode->dmFields & DM_ORIENTATION)
|
||||
m_printOrientation = devMode->dmOrientation;
|
||||
#endif
|
||||
|
||||
//// Collation
|
||||
|
||||
@@ -658,7 +646,6 @@ void wxPrintData::ConvertFromNative()
|
||||
else
|
||||
m_colour = TRUE;
|
||||
|
||||
#ifndef __WXWINE__
|
||||
//// Paper size
|
||||
|
||||
// We don't know size of user defined paper and some buggy drivers
|
||||
@@ -712,7 +699,6 @@ void wxPrintData::ConvertFromNative()
|
||||
m_paperSize.y = 0;
|
||||
m_paperId = wxPAPER_NONE;
|
||||
}
|
||||
#endif
|
||||
|
||||
//// Duplex
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#if wxUSE_FILE
|
||||
|
||||
// standard
|
||||
#if defined(__WXMSW__) && !defined(__GNUWIN32__) && !defined(__WXWINE__) && !defined(__WXMICROWIN__)
|
||||
#if defined(__WXMSW__) && !defined(__GNUWIN32__) && !defined(__WXMICROWIN__)
|
||||
#include <io.h>
|
||||
|
||||
#ifndef __SALFORDC__
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
#include <process.h>
|
||||
#include "wx/os2/private.h"
|
||||
#endif
|
||||
#if defined(__WINDOWS__) && !defined(__WXMICROWIN__) && !defined(__WXWINE__)
|
||||
#if defined(__WINDOWS__) && !defined(__WXMICROWIN__)
|
||||
#if !defined( __GNUWIN32__ ) && !defined( __MWERKS__ ) && !defined(__SALFORDC__)
|
||||
#include <direct.h>
|
||||
#include <dos.h>
|
||||
@@ -1262,7 +1262,7 @@ bool wxMkdir(const wxString& dir, int perm)
|
||||
|
||||
// assume mkdir() has 2 args on non Windows-OS/2 platforms and on Windows too
|
||||
// for the GNU compiler
|
||||
#if (!(defined(__WXMSW__) || defined(__WXPM__) || defined(__DOS__))) || (defined(__GNUWIN32__) && !defined(__MINGW32__)) || defined(__WXWINE__) || defined(__WINE__) || defined(__WXMICROWIN__)
|
||||
#if (!(defined(__WXMSW__) || defined(__WXPM__) || defined(__DOS__))) || (defined(__GNUWIN32__) && !defined(__MINGW32__)) || defined(__WINE__) || defined(__WXMICROWIN__)
|
||||
if ( mkdir(wxFNCONV(dirname), perm) != 0 )
|
||||
#elif defined(__WXPM__)
|
||||
if (::DosCreateDir((PSZ)dirname, NULL) != 0) // enhance for EAB's??
|
||||
|
||||
@@ -486,7 +486,7 @@ wxMimeTypesManager::~wxMimeTypesManager()
|
||||
|
||||
bool wxMimeTypesManager::Unassociate(wxFileType *ft)
|
||||
{
|
||||
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WXWINE__) && !defined(__WINE__)
|
||||
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WINE__)
|
||||
return m_impl->Unassociate(ft);
|
||||
#else
|
||||
return ft->Unassociate();
|
||||
@@ -596,7 +596,7 @@ size_t wxMimeTypesManager::EnumAllFileTypes(wxArrayString& mimetypes)
|
||||
void wxMimeTypesManager::Initialize(int mcapStyle,
|
||||
const wxString& sExtraDir)
|
||||
{
|
||||
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WXWINE__) && !defined(__WINE__)
|
||||
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WINE__)
|
||||
EnsureImpl();
|
||||
|
||||
m_impl->Initialize(mcapStyle, sExtraDir);
|
||||
@@ -609,7 +609,7 @@ void wxMimeTypesManager::Initialize(int mcapStyle,
|
||||
// and this function clears all the data from the manager
|
||||
void wxMimeTypesManager::ClearData()
|
||||
{
|
||||
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WXWINE__) && !defined(__WINE__)
|
||||
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WINE__)
|
||||
EnsureImpl();
|
||||
|
||||
m_impl->ClearData();
|
||||
|
||||
@@ -784,12 +784,6 @@ size_t IC_CharSet::WC2MB(char *buf, const wchar_t *psz, size_t n)
|
||||
|
||||
#if defined(__WIN32__) && !defined(__WXMICROWIN__) && !defined(__WXUNIVERSAL__)
|
||||
|
||||
#ifdef __WXWINE__
|
||||
#define WINE_CAST (WCHAR *)
|
||||
#else
|
||||
#define WINE_CAST
|
||||
#endif
|
||||
|
||||
extern long wxCharsetToCodepage(const wxChar *charset); // from utils.cpp
|
||||
|
||||
class CP_CharSet : public wxCharacterSet
|
||||
@@ -809,7 +803,7 @@ public:
|
||||
0, // flags (none)
|
||||
psz, // input string
|
||||
-1, // its length (NUL-terminated)
|
||||
WINE_CAST buf, // output string
|
||||
buf, // output string
|
||||
buf ? n : 0 // size of output buffer
|
||||
);
|
||||
|
||||
@@ -824,7 +818,7 @@ public:
|
||||
(
|
||||
m_CodePage, // code page
|
||||
0, // flags (none)
|
||||
WINE_CAST psz, // input string
|
||||
psz, // input string
|
||||
-1, // it is (wide) NUL-terminated
|
||||
buf, // output buffer
|
||||
buf ? n : 0, // and its size
|
||||
|
||||
Reference in New Issue
Block a user