summaryrefslogtreecommitdiff
path: root/fonts/fontforge/patches
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-04-19 19:43:17 +0000
committerrillig <rillig@pkgsrc.org>2006-04-19 19:43:17 +0000
commitffe19a8353b0ee03984a53331270a7efe33086fe (patch)
tree8198e20c0a289a8a0b9b6615ed2fbaa89a9c9f37 /fonts/fontforge/patches
parentf478a12293d892dfecb8f8eeb54afbb8fd642c9e (diff)
downloadpkgsrc-ffe19a8353b0ee03984a53331270a7efe33086fe.tar.gz
Added a patch for ISO C90 compatibility.
Diffstat (limited to 'fonts/fontforge/patches')
-rw-r--r--fonts/fontforge/patches/patch-ai21
1 files changed, 21 insertions, 0 deletions
diff --git a/fonts/fontforge/patches/patch-ai b/fonts/fontforge/patches/patch-ai
new file mode 100644
index 00000000000..4cf32116e6f
--- /dev/null
+++ b/fonts/fontforge/patches/patch-ai
@@ -0,0 +1,21 @@
+$NetBSD: patch-ai,v 1.3 2006/04/19 19:43:18 rillig Exp $
+
+gcc 2.95 does not like declarations intermixed with code.
+
+--- fontforge/charinfo.c.orig 2006-03-24 22:54:58.000000000 +0100
++++ fontforge/charinfo.c 2006-04-19 21:41:30.000000000 +0200
+@@ -4288,13 +4288,13 @@ return( true );
+
+ static int CI_NameCheck(const unichar_t *name) {
+ int bad, questionable;
++ extern int allow_utf8_glyphnames;
+ #if defined(FONTFORGE_CONFIG_GDRAW)
+ char *buts[3];
+ buts[0] = _("_Yes"); buts[1]=_("_No"); buts[2] = NULL;
+ #elif defined(FONTFORGE_CONFIG_GTK)
+ static char *buts[] = { GTK_STOCK_YES, GTK_STOCK_CANCEL, NULL };
+ #endif
+- extern int allow_utf8_glyphnames;
+
+ if ( uc_strcmp(name,".notdef")==0 ) /* This name is a special case and doesn't follow conventions */
+ return( true );