Hi,
recently, vacuum has had some troubles compiling some of our Edje
themes. He's running an older release of gcc, which apparently takes cpp
code more seriously than gcc3.
To prevent those errors in the first place, I suggest we make edje_cc
invoke cpp/gcc with "-ansi".
Comments?
--
Regards,
Tilman
Index: edje_cc_parse.c
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/bin/edje_cc_parse.c,v
retrieving revision 1.20
diff -u -r1.20 edje_cc_parse.c
--- edje_cc_parse.c 25 Apr 2004 04:20:58 -0000 1.20
+++ edje_cc_parse.c 10 Jul 2004 21:41:39 -0000
@@ -531,11 +531,11 @@
clean_file = tmpn;
close(fd);
atexit(clean_tmp_file);
- snprintf(buf, sizeof(buf), "cat %s | cpp -E -o %s", file_in, tmpn);
+ snprintf(buf, sizeof(buf), "cat %s | cpp -ansi -E -o %s", file_in, tmpn);
ret = system(buf);
if (ret < 0)
{
- snprintf(buf, sizeof(buf), "gcc -E -o %s %s", tmpn, file_in);
+ snprintf(buf, sizeof(buf), "gcc -ansi -E -o %s %s", tmpn, file_in);
ret = system(buf);
}
if (ret >= 0) file_in = tmpn;