On Fri, 3 Dec 2010, Cedric BAIL wrote:

On Fri, Dec 3, 2010 at 5:57 PM, Vincent Torri <vto...@univ-evry.fr> wrote:
On Fri, 3 Dec 2010, Enlightenment SVN wrote:
Log:
      * edje: improve portability and simplify code.

+          snprintf(buf, sizeof(buf), "%s -I%s %s -E -o %s - < %s",
+                      getenv("CC") ? getenv("CC") : "cc",
                    inc, def, tmpn, file_in);
           ret = system(buf);

shouldn't you also pass

-x c

to force the language (gcc can rely on the file extension to select the

No need as I pass it using redirection instead of directly the
filename. That was to avoid complexifying the command line.

language) and

-std=c99

to be sure to remove the c++ comments ?

Good question, don't know if it will be supported by other compiler
than gcc. What's your opinion ?

sun (oracle) compiler: -xc99 (no -std option)
icc: -std=c99
x86 open64 (amd) : -std=c99
vc++ (cl.exe): i don't know

so maybe try first with -std=c99 ; if the command fails, try with -xc99

I don't know other interesting compiler

Vincent
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to