From b129e33bf1bfae1cf0a762c15ae961a3f24b844c Mon Sep 17 00:00:00 2001 From: cedric Date: Fri, 3 Dec 2010 17:55:02 +0000 Subject: [PATCH] * edje: remove c++ comment also. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@55209 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/edje_cc_parse.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/bin/edje_cc_parse.c b/src/bin/edje_cc_parse.c index b969901..1f28859 100644 --- a/src/bin/edje_cc_parse.c +++ b/src/bin/edje_cc_parse.c @@ -723,9 +723,18 @@ compile(void) } } + /* Trying gcc and other syntax */ if (ret != 0) { - snprintf(buf, sizeof(buf), "%s -I%s %s -E -o %s - < %s", + snprintf(buf, sizeof(buf), "%s -I%s %s -E -o %s -std=c99 - < %s", + getenv("CC") ? getenv("CC") : "cc", + inc, def, tmpn, file_in); + ret = system(buf); + } + /* Trying suncc syntax */ + if (ret != 0) + { + snprintf(buf, sizeof(buf), "%s -I%s %s -E -o %s -xc99 - < %s", getenv("CC") ? getenv("CC") : "cc", inc, def, tmpn, file_in); ret = system(buf); -- 2.7.4