forked from enlightenment/efl
Use the second updated patch for the cpp problem. Originally submitted by Romu
on #edevelop. SVN revision: 19224
This commit is contained in:
parent
62799c9e70
commit
7d614c0570
|
@ -662,9 +662,14 @@ compile(void)
|
||||||
* If the preprocessor is invoked via gcc -E, it will treat
|
* If the preprocessor is invoked via gcc -E, it will treat
|
||||||
* file_in as a linker file. The safest route seems to be to
|
* file_in as a linker file. The safest route seems to be to
|
||||||
* run cpp with the output as the second non-option argument.
|
* 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",
|
snprintf(buf, sizeof(buf), "cat %s | cpp -I%s -E %s > %s",
|
||||||
inc, def, file_in, tmpn);
|
file_in, inc, def, tmpn);
|
||||||
|
/* snprintf(buf, sizeof(buf), "cpp -I%s %s %s %s",
|
||||||
|
inc, def, file_in, tmpn); */
|
||||||
ret = system(buf);
|
ret = system(buf);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue