pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/fonts/ttmkfdir2 Fix compilation with g++2, per a hint ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/83607f911067
branches: trunk
changeset: 472068:83607f911067
user: wiz <wiz%pkgsrc.org@localhost>
date: Sat Apr 03 11:28:53 2004 +0000
description:
Fix compilation with g++2, per a hint from hubertf.
diffstat:
fonts/ttmkfdir2/distinfo | 3 ++-
fonts/ttmkfdir2/patches/patch-ad | 26 ++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 1 deletions(-)
diffs (43 lines):
diff -r db472b259789 -r 83607f911067 fonts/ttmkfdir2/distinfo
--- a/fonts/ttmkfdir2/distinfo Sat Apr 03 11:23:13 2004 +0000
+++ b/fonts/ttmkfdir2/distinfo Sat Apr 03 11:28:53 2004 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/03/29 22:04:09 recht Exp $
+$NetBSD: distinfo,v 1.2 2004/04/03 11:28:53 wiz Exp $
SHA1 (ttmkfdir2.20021109.tar.bz2) = bee1944ce3e5b6c4503a14e6429737cc558a24c0
Size (ttmkfdir2.20021109.tar.bz2) = 701900 bytes
SHA1 (patch-aa) = 513c6922cfa60a6c2dbf332a5d65e0277bd89929
SHA1 (patch-ab) = d22b1eb7de9c2ba622583bb2e2fe6c4ccd4b26d2
SHA1 (patch-ac) = 23eb6e500522a1ce826a9b0899d7afff6017d096
+SHA1 (patch-ad) = 0c328908ffae3397293ff6b00094444e23164788
diff -r db472b259789 -r 83607f911067 fonts/ttmkfdir2/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ttmkfdir2/patches/patch-ad Sat Apr 03 11:28:53 2004 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-ad,v 1.1 2004/04/03 11:28:53 wiz Exp $
+
+--- directory.cpp.orig Tue Jan 11 01:44:44 2000
++++ directory.cpp
+@@ -5,6 +5,8 @@
+
+ #include "directory.h"
+
++using namespace std;
++
+ directory::~directory (void)
+ {
+ }
+@@ -48,8 +50,8 @@ ttfdirectory::select (const char *name)
+ /* we make the decision by the extension of the file name */
+ return (((len = strlen (name)) > 4) &&
+ (name[len - 4] == '.') &&
+- (std::toupper(name[len - 3]) == 'T') &&
+- (std::toupper(name[len - 2]) == 'T') &&
+- ((std::toupper(name[len - 1]) == 'F') ||
+- (std::toupper(name[len - 1]) == 'C')));
++ (toupper(name[len - 3]) == 'T') &&
++ (toupper(name[len - 2]) == 'T') &&
++ ((toupper(name[len - 1]) == 'F') ||
++ (toupper(name[len - 1]) == 'C')));
+ }
Home |
Main Index |
Thread Index |
Old Index