diff options
author | ben <ben@pkgsrc.org> | 2003-12-20 16:00:56 +0000 |
---|---|---|
committer | ben <ben@pkgsrc.org> | 2003-12-20 16:00:56 +0000 |
commit | 217d0fdf72625cd944d46a597d0248b2ccacddd5 (patch) | |
tree | 8a2b830f7bd6133fa12f4e256db52f75c604eaf7 /converters | |
parent | d4197a4c230cd2eaa5f7490375874ef9e296f3bd (diff) | |
download | pkgsrc-217d0fdf72625cd944d46a597d0248b2ccacddd5.tar.gz |
Make this build with gcc3
* remove unnecessary ios::nocreate
http://www.dinkumware.com/manuals/reader.aspx?b=p/&h=fstream.html#basic_filebuf::open
* add using namespace std to get min()
Diffstat (limited to 'converters')
-rw-r--r-- | converters/tex2rtf/distinfo | 4 | ||||
-rw-r--r-- | converters/tex2rtf/patches/patch-ac | 31 | ||||
-rw-r--r-- | converters/tex2rtf/patches/patch-ad | 13 |
3 files changed, 47 insertions, 1 deletions
diff --git a/converters/tex2rtf/distinfo b/converters/tex2rtf/distinfo index 2cb489db218..dc03f165876 100644 --- a/converters/tex2rtf/distinfo +++ b/converters/tex2rtf/distinfo @@ -1,6 +1,8 @@ -$NetBSD: distinfo,v 1.1.1.1 2002/05/25 23:23:01 rh Exp $ +$NetBSD: distinfo,v 1.2 2003/12/20 16:00:56 ben Exp $ SHA1 (tex2rtf164_source.zip) = 553e76b3ffd7e0a670427ea27a4cdaab3cee4d72 Size (tex2rtf164_source.zip) = 310555 bytes SHA1 (patch-aa) = 08b848150d26177e8401a0538fe9ea49395c1a5e SHA1 (patch-ab) = fbb7a7733670acc96f86765c7c3d34baeab4a061 +SHA1 (patch-ac) = 786e851e1a3968f7796c10f302bbb7f88ef42932 +SHA1 (patch-ad) = 1eadb381c0cfc436f5d35a314feb2d229af4be5a diff --git a/converters/tex2rtf/patches/patch-ac b/converters/tex2rtf/patches/patch-ac new file mode 100644 index 00000000000..7e13842b495 --- /dev/null +++ b/converters/tex2rtf/patches/patch-ac @@ -0,0 +1,31 @@ +$NetBSD: patch-ac,v 1.1 2003/12/20 16:00:56 ben Exp $ + +--- texutils.cpp.orig 1997-06-05 16:17:46.000000000 -0700 ++++ texutils.cpp +@@ -390,7 +390,7 @@ void WriteTexReferences(char *filename) + + void ReadTexReferences(char *filename) + { +- ifstream istr(filename, ios::nocreate | ios::in); ++ ifstream istr(filename, ios::in); + if (istr.bad()) return; + + char label[100]; +@@ -554,7 +554,7 @@ void BibReadValue(istream& istr, char *b + Bool ReadBib(char *filename) + { + char buf[300]; +- ifstream istr(filename, ios::nocreate | ios::in); ++ ifstream istr(filename, ios::in); + if (istr.bad()) return FALSE; + + BibLine = 1; +@@ -1271,7 +1271,7 @@ char *RegisterSetting(char *settingName, + + Bool ReadCustomMacros(char *filename) + { +- ifstream istr(filename, ios::nocreate | ios::in); ++ ifstream istr(filename, ios::in); + if (istr.bad()) return FALSE; + + CustomMacroList.Clear(); diff --git a/converters/tex2rtf/patches/patch-ad b/converters/tex2rtf/patches/patch-ad new file mode 100644 index 00000000000..61d0927603d --- /dev/null +++ b/converters/tex2rtf/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1 2003/12/20 16:00:56 ben Exp $ + +--- wxwin/wb_utils.cpp.orig 1997-07-20 17:01:04.000000000 -0700 ++++ wxwin/wb_utils.cpp +@@ -27,6 +27,8 @@ + */ + + ++using namespace std; ++ + #include "common.h" + #include "wx_utils.h" + #include "wx_list.h" |