From 1eac776c037870e281d12d39a071babb18cb39ab Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Mon, 27 Jul 1998 17:08:49 +0000 Subject: [PATCH] * Bug fixes * Changed wxObjectOutputStream::AddChildren() to AddChild() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/file.h | 5 +---- include/wx/objstrm.h | 2 +- src/Makefile.in | 2 ++ src/common/objstrm.cpp | 2 +- src/common/zstream.cpp | 2 +- src/gtk/setup/maketmpl.in | 1 + src/gtk1/setup/maketmpl.in | 1 + 7 files changed, 8 insertions(+), 7 deletions(-) diff --git a/include/wx/file.h b/include/wx/file.h index a12d355507..11d935dacc 100644 --- a/include/wx/file.h +++ b/include/wx/file.h @@ -24,9 +24,6 @@ // constants // ---------------------------------------------------------------------------- -// error return value for Seek() functions -const off_t ofsInvalid = (off_t)-1; - // we redefine these constants here because S_IREAD &c are _not_ standard // however, we do assume that the values correspond to the Unix umask bits #define wxS_IRUSR 00400 @@ -118,7 +115,7 @@ public: bool Error() const { return m_error; } // dtor closes the file if opened - ~wxFile(); + virtual ~wxFile(); // Temporally virtual because of wxFileStream: I'll change back in a near future. private: // copy ctor and assignment operator are private because diff --git a/include/wx/objstrm.h b/include/wx/objstrm.h index a2fe96082c..dd6f56e710 100644 --- a/include/wx/objstrm.h +++ b/include/wx/objstrm.h @@ -33,7 +33,7 @@ class wxObjectOutputStream : public wxFilterOutputStream { public: wxObjectOutputStream(wxOutputStream& s); - void AddChildren(wxObject *obj); + void AddChild(wxObject *obj); bool SaveObject(wxObject& obj); bool FirstStage() const { return m_stage == 0; } diff --git a/src/Makefile.in b/src/Makefile.in index 7ea8c41e02..2a0ce6cd7d 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -56,6 +56,8 @@ LIB_CPP_SRC=\ common/time.cpp \ common/timercmn.cpp \ common/utilscmn.cpp \ + common/wincmn.cpp \ + common/framecmn.cpp \ common/stream.cpp \ common/datstrm.cpp \ common/fstream.cpp \ diff --git a/src/common/objstrm.cpp b/src/common/objstrm.cpp index 07210b388a..935d6fe08c 100644 --- a/src/common/objstrm.cpp +++ b/src/common/objstrm.cpp @@ -48,7 +48,7 @@ void wxObjectOutputStream::WriteObjectDef(wxObjectStreamInfo& info) data_s.Write8(info.children.Number()); } -void wxObjectOutputStream::AddChildren(wxObject *obj) +void wxObjectOutputStream::AddChild(wxObject *obj) { wxObjectStreamInfo *info; diff --git a/src/common/zstream.cpp b/src/common/zstream.cpp index 85b95b59e3..ea64071eb7 100644 --- a/src/common/zstream.cpp +++ b/src/common/zstream.cpp @@ -17,7 +17,7 @@ #include #include #include -#include "../zlib/zlib.h" +#include "zlib.h" #ifdef __BORLANDC__ #pragma hdrstop diff --git a/src/gtk/setup/maketmpl.in b/src/gtk/setup/maketmpl.in index 540aede6b9..2bdb97d831 100644 --- a/src/gtk/setup/maketmpl.in +++ b/src/gtk/setup/maketmpl.in @@ -95,6 +95,7 @@ $(TOOLKIT_DEF) \ -I. \ -I.. \ -I$(WXBASEDIR)/include \ +-I$(WXBASEDIR)/src/zlib \ $(GUI_TK_INCLUDE) \ $(OPENGL_INCLUDE) \ $(X_CFLAGS) diff --git a/src/gtk1/setup/maketmpl.in b/src/gtk1/setup/maketmpl.in index 540aede6b9..2bdb97d831 100644 --- a/src/gtk1/setup/maketmpl.in +++ b/src/gtk1/setup/maketmpl.in @@ -95,6 +95,7 @@ $(TOOLKIT_DEF) \ -I. \ -I.. \ -I$(WXBASEDIR)/include \ +-I$(WXBASEDIR)/src/zlib \ $(GUI_TK_INCLUDE) \ $(OPENGL_INCLUDE) \ $(X_CFLAGS) -- 2.45.2