]> git.saurik.com Git - wxWidgets.git/commitdiff
Added wxBackingFile and wxBackedInputStream.
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Mon, 23 Oct 2006 15:45:51 +0000 (15:45 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Mon, 23 Oct 2006 15:45:51 +0000 (15:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

build/msw/makefile.vc
include/wx/msw/private.h
include/wx/setup_inc.h

index 75f55b6ecba9184969f153922a4dd8b943ac6145..da788fe1f48462780dc69fb8b593200285a652a2 100644 (file)
@@ -219,6 +219,7 @@ MONODLL_OBJECTS =  \
        $(OBJS)\monodll_extended.obj \
        $(OBJS)\monodll_ffile.obj \
        $(OBJS)\monodll_file.obj \
+       $(OBJS)\monodll_fileback.obj \
        $(OBJS)\monodll_fileconf.obj \
        $(OBJS)\monodll_filefn.obj \
        $(OBJS)\monodll_filename.obj \
@@ -337,6 +338,7 @@ MONOLIB_OBJECTS =  \
        $(OBJS)\monolib_extended.obj \
        $(OBJS)\monolib_ffile.obj \
        $(OBJS)\monolib_file.obj \
+       $(OBJS)\monolib_fileback.obj \
        $(OBJS)\monolib_fileconf.obj \
        $(OBJS)\monolib_filefn.obj \
        $(OBJS)\monolib_filename.obj \
@@ -457,6 +459,7 @@ BASEDLL_OBJECTS =  \
        $(OBJS)\basedll_extended.obj \
        $(OBJS)\basedll_ffile.obj \
        $(OBJS)\basedll_file.obj \
+       $(OBJS)\basedll_fileback.obj \
        $(OBJS)\basedll_fileconf.obj \
        $(OBJS)\basedll_filefn.obj \
        $(OBJS)\basedll_filename.obj \
@@ -561,6 +564,7 @@ BASELIB_OBJECTS =  \
        $(OBJS)\baselib_extended.obj \
        $(OBJS)\baselib_ffile.obj \
        $(OBJS)\baselib_file.obj \
+       $(OBJS)\baselib_fileback.obj \
        $(OBJS)\baselib_fileconf.obj \
        $(OBJS)\baselib_filefn.obj \
        $(OBJS)\baselib_filename.obj \
@@ -4830,6 +4834,9 @@ $(OBJS)\monodll_ffile.obj: ..\..\src\common\ffile.cpp
 $(OBJS)\monodll_file.obj: ..\..\src\common\file.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) $**
 
+$(OBJS)\monodll_fileback.obj: ..\..\src\common\fileback.cpp
+       $(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) $**
+
 $(OBJS)\monodll_fileconf.obj: ..\..\src\common\fileconf.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) $**
 
@@ -6772,6 +6779,9 @@ $(OBJS)\monolib_ffile.obj: ..\..\src\common\ffile.cpp
 $(OBJS)\monolib_file.obj: ..\..\src\common\file.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) $**
 
+$(OBJS)\monolib_fileback.obj: ..\..\src\common\fileback.cpp
+       $(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) $**
+
 $(OBJS)\monolib_fileconf.obj: ..\..\src\common\fileconf.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) $**
 
@@ -8717,6 +8727,9 @@ $(OBJS)\basedll_ffile.obj: ..\..\src\common\ffile.cpp
 $(OBJS)\basedll_file.obj: ..\..\src\common\file.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(BASEDLL_CXXFLAGS) $**
 
+$(OBJS)\basedll_fileback.obj: ..\..\src\common\fileback.cpp
+       $(CXX) /c /nologo /TP /Fo$@ $(BASEDLL_CXXFLAGS) $**
+
 $(OBJS)\basedll_fileconf.obj: ..\..\src\common\fileconf.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(BASEDLL_CXXFLAGS) $**
 
@@ -8963,6 +8976,9 @@ $(OBJS)\baselib_ffile.obj: ..\..\src\common\ffile.cpp
 $(OBJS)\baselib_file.obj: ..\..\src\common\file.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(BASELIB_CXXFLAGS) $**
 
+$(OBJS)\baselib_fileback.obj: ..\..\src\common\fileback.cpp
+       $(CXX) /c /nologo /TP /Fo$@ $(BASELIB_CXXFLAGS) $**
+
 $(OBJS)\baselib_fileconf.obj: ..\..\src\common\fileconf.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(BASELIB_CXXFLAGS) $**
 
index dd0bd996a37836fcae9a5fd3f6eff4811a049b44..d79bbed42e1ea06bcdf252e65df5895fe12982cf 100644 (file)
@@ -166,6 +166,7 @@ extern LONG APIENTRY _EXPORT
 // Intel, Visual Age.
 #if defined(__WXWINCE__)
     #define wxGetOSFHandle(fd) ((HANDLE)fd)
+    #define wxOpenOSFHandle(h, flags) ((int)wxPtrToUInt(h))
 #elif defined(__CYGWIN__)
     #define wxGetOSFHandle(fd) ((HANDLE)get_osfhandle(fd))
 #elif defined(__VISUALC__) \
@@ -175,6 +176,8 @@ extern LONG APIENTRY _EXPORT
    || defined(__MINGW32__) \
    || (defined(__MWERKS__) && defined(__MSL__))
     #define wxGetOSFHandle(fd) ((HANDLE)_get_osfhandle(fd))
+    #define wxOpenOSFHandle(h, flags) (_open_osfhandle(wxPtrToUInt(h), flags))
+    #define wx_fdopen _fdopen
 #endif
 
 // close the handle in the class dtor
index 387c59a715f60ad61b8b233244ff8422b1d74830..de7d95be3b61e98e27203041e201a43b25b2c76f 100644 (file)
 // Set to 1 to compile wxZipInput/OutputStream classes.
 #define wxUSE_ZIPSTREAM     1
 
+// Set to 1 to compile wxBackingFile and wxBackedInputStream
+#define wxUSE_BACKINGFILE   1
+
 // Set to 1 to compile wxZlibInput/OutputStream classes. Also required by
 // wxUSE_LIBPNG
 #define wxUSE_ZLIB          1