diff options
author | arved <arved@FreeBSD.org> | 2002-11-27 03:36:16 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2002-11-27 03:36:16 +0800 |
commit | 814a04801abd892f982445ab16abdc9f26f4a1d4 (patch) | |
tree | c64b3bf2f64276d0547b33289f8e249246b4098b /print | |
parent | 1dfb63b8de63d8ea69ed499950b029dea07f3b9b (diff) | |
download | freebsd-ports-gnome-814a04801abd892f982445ab16abdc9f26f4a1d4.tar.gz freebsd-ports-gnome-814a04801abd892f982445ab16abdc9f26f4a1d4.tar.zst freebsd-ports-gnome-814a04801abd892f982445ab16abdc9f26f4a1d4.zip |
Fix build on -CURRENT
PR: 45765
Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
Diffstat (limited to 'print')
-rw-r--r-- | print/cpp2latex/files/patch-main.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/print/cpp2latex/files/patch-main.cpp b/print/cpp2latex/files/patch-main.cpp new file mode 100644 index 000000000000..6a9785b0b336 --- /dev/null +++ b/print/cpp2latex/files/patch-main.cpp @@ -0,0 +1,28 @@ +--- cpp2latex/main.cpp.orig Mon Jun 11 14:14:19 2001 ++++ cpp2latex/main.cpp Tue Nov 26 19:32:41 2002 +@@ -25,6 +25,14 @@ + #include <fstream> + #include <vector> + ++using std::cerr; ++using std::cout; ++using std::endl; ++using std::getline; ++using std::ifstream; ++using std::string; ++using std::vector; ++ + struct replace{ + string voraus; + string ersetzt; +@@ -87,8 +95,8 @@ + cerr<<" Skipping "<<skip<<" lines."<<endl; + for(int i=0; i<skip; i++) + { +- char* tmp; +- file.gets( &tmp ); ++ string line; ++ getline( file, line ); + } + + // Tabspace setzen |