From 7d614c057033a9b0401fb084d3889407696bd9c6 Mon Sep 17 00:00:00 2001 From: rbdpngn Date: Thu, 22 Dec 2005 04:20:42 +0000 Subject: [PATCH] Use the second updated patch for the cpp problem. Originally submitted by Romu on #edevelop. SVN revision: 19224 --- legacy/edje/src/bin/edje_cc_parse.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/legacy/edje/src/bin/edje_cc_parse.c b/legacy/edje/src/bin/edje_cc_parse.c index 6bf08b25c7..74ecd5ea3f 100644 --- a/legacy/edje/src/bin/edje_cc_parse.c +++ b/legacy/edje/src/bin/edje_cc_parse.c @@ -662,9 +662,14 @@ compile(void) * If the preprocessor is invoked via gcc -E, it will treat * file_in as a linker file. The safest route seems to be to * run cpp with the output as the second non-option argument. + * + * Redirecting the output is required for MacOS 10.3, and works fine + * on other systems. */ - snprintf(buf, sizeof(buf), "cpp -I%s %s %s %s", - inc, def, file_in, tmpn); + snprintf(buf, sizeof(buf), "cat %s | cpp -I%s -E %s > %s", + file_in, inc, def, tmpn); + /* snprintf(buf, sizeof(buf), "cpp -I%s %s %s %s", + inc, def, file_in, tmpn); */ ret = system(buf); if (ret < 0) {