Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/bin


Modified Files:
        edje_cc_parse.c 


Log Message:
Use the second updated patch for the cpp problem. Originally submitted by Romu
on #edevelop.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/bin/edje_cc_parse.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -3 -r1.38 -r1.39
--- edje_cc_parse.c     21 Dec 2005 04:29:16 -0000      1.38
+++ edje_cc_parse.c     22 Dec 2005 04:20:42 -0000      1.39
@@ -662,9 +662,14 @@
         * 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)
          {




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to