From 64f814dbdc21290565368b2182d2d7f318b56da3 Mon Sep 17 00:00:00 2001 From: hrs Date: Tue, 27 Aug 2013 11:38:56 +0000 Subject: Fix clang build. --- japanese/ptex/files/patch-texk-ps2pkm-type1.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 japanese/ptex/files/patch-texk-ps2pkm-type1.c (limited to 'japanese/ptex/files') 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*/ + } + -- cgit