pkgsrc/textproc/isearch/patches/patch-ac
dholland 1996770c3c Chase after that moving target known lightly as the C++ "standard".
Fixes build. Also clean up insecure-temporary-files. PKGREVISION -> 1.
2012-12-21 10:29:46 +00:00

36 lines
896 B
Text

$NetBSD: patch-ac,v 1.2 2012/12/21 10:29:46 dholland Exp $
Chase after the C++ standard:
- use the newfangled names for C++ headers
- open the std namespace instead of using explicit "std" qualification
(don't know what the deal with REGISTRY::fprint is, XXX)
--- src/registry.cxx.orig 2000-08-21 12:55:02.000000000 +0000
+++ src/registry.cxx
@@ -40,11 +40,14 @@ Description: Class REGISTRY - Structured
Author: Nassib Nassar, nrn@cnidr.org
@@@*/
-#include <fstream.h>
-#include <stdlib.h>
+#include <fstream>
+#include <ostream>
+#include <cstdlib>
#include "registry.hxx"
+using namespace std;
+
REGISTRY::REGISTRY(const STRING& Title) {
Data = Title;
@@ -333,7 +336,7 @@ void
REGISTRY::fprint(FILE* fp, const INT level) const
#else
void
-REGISTRY::fprint(FILE* fp, const INT level = 0) const
+REGISTRY::fprint(FILE* fp, const INT level) const
#endif
#else