Added wxFopen to the MSLU code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c34db1bee3
commit
cf9d4c6766
@ -51,6 +51,7 @@ WXDLLEXPORT int wxMSLU_GetSaveFileNameW(void *ofn);
|
||||
|
||||
WXDLLIMPEXP_BASE int wxMSLU__trename(const wxChar *oldname, const wxChar *newname);
|
||||
WXDLLIMPEXP_BASE int wxMSLU__tremove(const wxChar *name);
|
||||
WXDLLIMPEXP_BASE FILE* wxMSLU__tfopen(const wxChar *name, const wxChar *mode);
|
||||
|
||||
#if defined( __VISUALC__ ) \
|
||||
|| ( defined(__MINGW32__) && wxCHECK_W32API_VERSION( 0, 5 ) ) \
|
||||
|
@ -299,7 +299,11 @@
|
||||
#define wxFgetc _fgettc
|
||||
#define wxFgetchar _fgettchar
|
||||
#define wxFgets _fgetts
|
||||
#define wxFopen _tfopen
|
||||
#if wxUSE_UNICODE_MSLU
|
||||
#define wxFopen wxMSLU__tfopen
|
||||
#else
|
||||
#define wxFopen _tfopen
|
||||
#endif
|
||||
#define wxFputc _fputtc
|
||||
#define wxFputchar _fputtchar
|
||||
#define wxFprintf _ftprintf
|
||||
|
@ -169,6 +169,14 @@ WXDLLIMPEXP_BASE int wxMSLU__tremove(const wxChar *name)
|
||||
return _tremove(name);
|
||||
}
|
||||
|
||||
WXDLLIMPEXP_BASE FILE* wxMSLU__tfopen(const wxChar *name,const wxChar* mode)
|
||||
{
|
||||
if ( wxUsingUnicowsDll() )
|
||||
return fopen(wxConvFile.cWX2MB(name),wxConvFile.cWX2MB(mode));
|
||||
else
|
||||
return _tfopen(name,mode);
|
||||
}
|
||||
|
||||
#if defined( __VISUALC__ ) \
|
||||
|| ( defined(__MINGW32__) && wxCHECK_W32API_VERSION( 0, 5 ) ) \
|
||||
|| ( defined(__MWERKS__) && defined(__WXMSW__) ) \
|
||||
|
Loading…
Reference in New Issue
Block a user