applied Unicode fixes for mingw32 (patch 429654)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -66,7 +66,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString;
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// Microsoft compiler loves underscores, feed them to it
|
||||
#ifdef __VISUALC__
|
||||
#if defined( __VISUALC__ ) || defined( __GNUWIN32__ )
|
||||
// functions
|
||||
#define wxClose _close
|
||||
#define wxRead _read
|
||||
|
@@ -60,7 +60,7 @@ public:
|
||||
virtual ~wxPrinterBase();
|
||||
|
||||
virtual wxWindow *CreateAbortWindow(wxWindow *parent, wxPrintout *printout);
|
||||
virtual void ReportError(wxWindow *parent, wxPrintout *printout, char *message);
|
||||
virtual void ReportError(wxWindow *parent, wxPrintout *printout, const wxString& message);
|
||||
|
||||
wxPrintDialogData& GetPrintDialogData() const
|
||||
{ return (wxPrintDialogData&) m_printDialogData; }
|
||||
|
@@ -144,7 +144,7 @@ static const int wxTREE_HITTEST_ONITEM = wxTREE_HITTEST_ONITEMICON |
|
||||
wxTREE_HITTEST_ONITEMLABEL;
|
||||
|
||||
// tree ctrl default name
|
||||
WXDLLEXPORT_DATA(extern const char*) wxTreeCtrlNameStr;
|
||||
WXDLLEXPORT_DATA(extern const wxChar*) wxTreeCtrlNameStr;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxTreeItemAttr: a structure containing the visual attributes of an item
|
||||
|
@@ -63,6 +63,11 @@
|
||||
#define wxHAVE_TCHAR_FUNCTIONS
|
||||
#elif defined(__BORLANDC__) && (__BORLANDC__ >= 0x520)
|
||||
#define wxHAVE_TCHAR_FUNCTIONS
|
||||
#elif defined(__GNUWIN32__) && wxCHECK_W32API_VERSION( 0, 6 )
|
||||
#define wxHAVE_TCHAR_FUNCTIONS
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#endif
|
||||
#elif defined(__VISAGECPP__) && (__IBMCPP__ >= 400)
|
||||
// VisualAge 4.0+ supports TCHAR
|
||||
@@ -116,6 +121,12 @@
|
||||
# include <tchar.h>
|
||||
|
||||
# if wxUSE_UNICODE // temporary - preserve binary compatibility
|
||||
#if defined(__GNUWIN32__)
|
||||
#define _TCHAR TCHAR
|
||||
#define _TSCHAR TCHAR
|
||||
#define _TUCHAR TCHAR
|
||||
#endif
|
||||
|
||||
typedef _TCHAR wxChar;
|
||||
typedef _TSCHAR wxSChar;
|
||||
typedef _TUCHAR wxUChar;
|
||||
|
Reference in New Issue
Block a user