aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2013-08-27 19:38:56 +0800
committerhrs <hrs@FreeBSD.org>2013-08-27 19:38:56 +0800
commit64f814dbdc21290565368b2182d2d7f318b56da3 (patch)
tree2555f0dfa5d7d13c51634c5d628bb3bfad039627
parentac3bdcf7cf46d853354ec12208fed7e056b790ee (diff)
downloadfreebsd-ports-gnome-64f814dbdc21290565368b2182d2d7f318b56da3.tar.gz
freebsd-ports-gnome-64f814dbdc21290565368b2182d2d7f318b56da3.tar.zst
freebsd-ports-gnome-64f814dbdc21290565368b2182d2d7f318b56da3.zip
Fix clang build.
-rw-r--r--japanese/ptex/files/patch-texk-ps2pkm-type1.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/japanese/ptex/files/patch-texk-ps2pkm-type1.c b/japanese/ptex/files/patch-texk-ps2pkm-type1.c
new file mode 100644
index 000000000000..64e106d40c58
--- /dev/null
+++ b/japanese/ptex/files/patch-texk-ps2pkm-type1.c
@@ -0,0 +1,22 @@
+--- texk/ps2pkm/type1.c.orig 2013-08-27 19:21:53.000000000 +0900
++++ texk/ps2pkm/type1.c 2013-08-27 19:34:37.000000000 +0900
+@@ -125,8 +125,10 @@
+ #define CC IfTrace1(TRUE, "'%03o ", currentchar)
+
+ #define Error {errflag = TRUE; return;}
++#define Errord {errflag = TRUE; return 0.0;}
+
+ #define Error0(errmsg) { CC; IfTrace0(TRUE, errmsg); Error;}
++#define Error0d(errmsg) { CC; IfTrace0(TRUE, errmsg); Errord;}
+
+ #define Error1(errmsg,arg) { CC; IfTrace1(TRUE, errmsg, arg); Error;}
+
+@@ -800,7 +802,7 @@
+ static DOUBLE PSFakePop ()
+ {
+ if (PSFakeTop >= 0) return(PSFakeStack[PSFakeTop--]);
+- else Error0("PSFakePop : Stack empty\n");
++ else Error0d("PSFakePop : Stack empty\n");
+ /*NOTREACHED*/
+ }
+