mimetype.cpp MSW Win32Only,Base
minifram.cpp MSW
msgdlg.cpp MSW
+mslu.cpp MSW
nativdlg.cpp MSW
notebook.cpp MSW Win32Only
oleutils.cpp MSW OLE
minifram.h WXH
module.h WXH Base
msgdlg.h WXH
+mslu.cpp MSW
mstream.h WXH Base
notebook.h WXH
object.h WXH Base
mimetype.h MSWH Win32Only,Base
minifram.h MSWH
msgdlg.h MSWH
+mslu.h MSWH
msvcrt.h MSWH
notebook.h MSWH
palette.h MSWH
#if wxUSE_UNICODE
#if wxUSE_UNICODE_MSLU
- WXDLLEXPORT int wxOpen(const wxChar *name, int flags, int mode);
+ #define wxOpen wxMSLU__wopen
+ #define wxAccess wxMSLU__waccess
+ #define wxMkDir wxMSLU__wmkdir
+ #define wxRmDir wxMSLU__wrmdir
+ #define wxStat wxMSLU__wstat
#else
#define wxOpen _wopen
+ #define wxAccess _waccess
+ #define wxMkDir _wmkdir
+ #define wxRmDir _wrmdir
+ #define wxStat _wstat
#endif
- #define wxAccess _waccess
-
- #define wxMkDir _wmkdir
- #define wxRmDir _wrmdir
-
- #define wxStat _wstat
#else // !wxUSE_UNICODE
#define wxOpen _open
#define wxAccess _access
-
#define wxMkDir _mkdir
#define wxRmDir _rmdir
-
#define wxStat _stat
#endif
// undefine conflicting symbols which were defined in windows.h
#include "wx/msw/winundef.h"
+// Include fixes for MSLU:
+#include "wx/msw/mslu.h"
+
#include "wx/log.h"
class WXDLLEXPORT wxFont;
// stdio.h functions
#ifndef wxNO_TCHAR_STDIO
+# if wxUSE_UNICODE_MSLU
+# define wxRemove wxMSLU__tremove
+# define wxRename wxMSLU__trename
+# else
+# define wxRemove _tremove
+# define wxRename _trename
+# endif
# define wxFgetc _fgettc
# define wxFgetchar _fgettchar
# define wxFgets _fgetts
# define wxPutc _puttc
# define wxPutchar _puttchar
# define wxPuts _putts
-# define wxRemove _tremove
-# define wxRename _trename
# define wxScanf _tscanf
# define wxSprintf _stprintf
# define wxSscanf _stscanf
#include "wx/mac/private.h" // includes mac headers
#endif
-// _WINDOWS_ is defined when windows.h is included,
-// __WXMSW__ is defined for MS Windows compilation
-#if defined(__WXMSW__) && !defined(_WINDOWS_)
- #include <windows.h>
+#if defined(__WXMSW__)
+ #include "wx/msw/private.h"
#endif //windows.h
#if defined(__WXPM__)
#define INCL_DOS
#ifdef __WINDOWS__
#include <windows.h>
-
+ #include "wx/msw/mslu.h"
+
// sys/cygwin.h is needed for cygwin_conv_to_full_win32_path()
//
// note that it must be included after <windows.h>
#ifdef __VISUALC__
#pragma warning(default:4706) // assignment within conditional expression
#endif // VC++
-
-//------------------------------------------------------------------------
-// Missing functions in Unicode for Win9x
-//------------------------------------------------------------------------
-
-// NB: MSLU only covers Win32 API, it doesn't provide Unicode implementation of
-// libc functions. Unfortunately, some of MSVCRT wchar_t functions
-// (e.g. _wopen) don't work on Windows 9x, so we have to workaround it
-// by calling the char version. We still want to use wchar_t version on
-// NT/2000/XP, though, because they allow for Unicode file names.
-#if wxUSE_UNICODE_MSLU
-
- #if defined( __VISUALC__ ) \
- || ( defined(__MINGW32__) && wxCHECK_W32API_VERSION( 0, 5 ) ) \
- || ( defined(__MWERKS__) && defined(__WXMSW__) )
- WXDLLEXPORT int wxOpen(const wxChar *name, int flags, int mode)
- {
- if ( wxGetOsVersion() == wxWINDOWS_NT )
- return _wopen(name, flags, mode);
- else
- return _open(wxConvFile.cWX2MB(name), flags, mode);
- }
- #endif
-
-#endif // wxUSE_UNICODE_MSLU
msw/mimetype.h \
msw/minifram.h \
msw/msgdlg.h \
+ msw/mslu.h \
msw/msvcrt.h \
msw/notebook.h \
msw/palette.h \
msw/mimetype.cpp \
msw/minifram.cpp \
msw/msgdlg.cpp \
+ msw/mslu.cpp \
msw/nativdlg.cpp \
msw/notebook.cpp \
msw/ole/oleutils.cpp \
msw/mimetype.h \
msw/minifram.h \
msw/msgdlg.h \
+ msw/mslu.h \
msw/msvcrt.h \
msw/notebook.h \
msw/palette.h \
mimetype.o \
minifram.o \
msgdlg.o \
+ mslu.o \
nativdlg.o \
notebook.o \
ownerdrw.o \
$(MSWDIR)\mimetype.obj \
$(MSWDIR)\minifram.obj \
$(MSWDIR)\msgdlg.obj \
+ $(MSWDIR)\mslu.obj \
$(MSWDIR)\nativdlg.obj \
$(MSWDIR)\notebook.obj \
$(MSWDIR)\oleutils.obj \
$(MSWDIR)\msgdlg.obj: $(MSWDIR)\msgdlg.$(SRCSUFF)
+$(MSWDIR)\mslu.obj: $(MSWDIR)\mslu.$(SRCSUFF)
+
$(MSWDIR)\nativdlg.obj: $(MSWDIR)\nativdlg.$(SRCSUFF)
$(MSWDIR)\notebook.obj: $(MSWDIR)\notebook.$(SRCSUFF)
$(MSWDIR)\metafile.obj \
$(MSWDIR)\minifram.obj \
$(MSWDIR)\msgdlg.obj \
+ $(MSWDIR)\mslu.obj \
$(MSWDIR)\nativdlg.obj \
$(MSWDIR)\ownerdrw.obj \
$(MSWDIR)\palette.obj \
$(MSWDIR)\msgdlg.obj: $(MSWDIR)\msgdlg.$(SRCSUFF)
+$(MSWDIR)\mslu.obj: $(MSWDIR)\mslu.$(SRCSUFF)
+
$(MSWDIR)\nativdlg.obj: $(MSWDIR)\nativdlg.$(SRCSUFF)
$(MSWDIR)\ownerdrw.obj: $(MSWDIR)\ownerdrw.$(SRCSUFF)
$(MSWDIR)\metafile.obj \
$(MSWDIR)\minifram.obj \
$(MSWDIR)\msgdlg.obj \
+ $(MSWDIR)\mslu.obj \
$(MSWDIR)\nativdlg.obj \
$(MSWDIR)\ownerdrw.obj
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
<<
+$(MSWDIR)/mslu.obj: $*.$(SRCSUFF)
+ cl @<<
+$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
+<<
+
$(MSWDIR)/nativdlg.obj: $*.$(SRCSUFF)
cl @<<
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
$(MSWDIR)/metafile.$(OBJSUFF) \
$(MSWDIR)/minifram.$(OBJSUFF) \
$(MSWDIR)/msgdlg.$(OBJSUFF) \
+ $(MSWDIR)/mslu.$(OBJSUFF) \
$(MSWDIR)/nativdlg.$(OBJSUFF) \
$(MSWDIR)/notebook.$(OBJSUFF) \
$(MSWDIR)/ownerdrw.$(OBJSUFF) \
$(MSWDIR)\mimetype.obj \
$(MSWDIR)\minifram.obj \
$(MSWDIR)\msgdlg.obj \
+ $(MSWDIR)\mslu.obj \
$(MSWDIR)\nativdlg.obj \
$(MSWDIR)\ole\oleutils.obj \
$(MSWDIR)\ownerdrw.obj \
$(MSWDIR)\$D\mimetype.obj \
$(MSWDIR)\$D\minifram.obj \
$(MSWDIR)\$D\msgdlg.obj \
+ $(MSWDIR)\$D\mslu.obj \
$(MSWDIR)\$D\nativdlg.obj \
$(MSWDIR)\$D\notebook.obj \
$(OLEDIR)\$D\oleutils.obj \
mimetype.obj &
minifram.obj &
msgdlg.obj &
+ mslu.obj &
nativdlg.obj &
notebook.obj &
oleutils.obj &
msgdlg.obj: $(MSWDIR)\msgdlg.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
+mslu.obj: $(MSWDIR)\mslu.cpp
+ *$(CCC) $(CPPFLAGS) $(IFLAGS) $<
+
nativdlg.obj: $(MSWDIR)\nativdlg.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
# End Source File
# Begin Source File
+SOURCE=.\msw\mslu.cpp
+# End Source File
+# Begin Source File
+
SOURCE=.\msw\nativdlg.cpp
# End Source File
# Begin Source File
# End Source File
# Begin Source File
+SOURCE=..\include\wx\msw\mslu.h
+# End Source File
+# Begin Source File
+
SOURCE=..\include\wx\msw\msvcrt.h
# End Source File
# Begin Source File