Use the second updated patch for the cpp problem. Originally submitted by Romu

on #edevelop.


SVN revision: 19224
This commit is contained in:
rbdpngn 2005-12-22 04:20:42 +00:00 committed by rbdpngn
parent 62799c9e70
commit 7d614c0570
1 changed files with 7 additions and 2 deletions

View File

@ -662,9 +662,14 @@ compile(void)
* 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)
{