e6e425ab8a
"#pragma<space>foo..." and outputs "#pragma<tab>foo...", breaking the ORBit preprocessor which only looks for the former. Ensure the latter case is handled. Fixes build on Solaris/Sunpro.
21 lines
803 B
Text
21 lines
803 B
Text
$NetBSD: patch-aa,v 1.6 2004/11/05 10:19:10 sketch Exp $
|
|
|
|
--- src/idl-compiler/orbit-idl-c-headers.c.orig Wed Nov 3 13:10:51 2004
|
|
+++ src/idl-compiler/orbit-idl-c-headers.c Wed Nov 3 13:11:53 2004
|
|
@@ -447,6 +447,16 @@
|
|
while(*cte && !isspace((int)*cte) && *cte != '"') cte++;
|
|
*cte = '\0';
|
|
fprintf(ci->fh, "#include <%s>\n", ctmp);
|
|
+ } else if(!strncmp(list->data,
|
|
+ "#pragma\tinclude_defs",
|
|
+ sizeof("#pragma\tinclude_defs")-1)) {
|
|
+ char *ctmp, *cte;
|
|
+ ctmp = ((char *)list->data) + sizeof("#pragma\tinclude_defs");
|
|
+ while(*ctmp && (isspace((int)*ctmp) || *ctmp == '"')) ctmp++;
|
|
+ cte = ctmp;
|
|
+ while(*cte && !isspace((int)*cte) && *cte != '"') cte++;
|
|
+ *cte = '\0';
|
|
+ fprintf(ci->fh, "#include <%s>\n", ctmp);
|
|
} else
|
|
fprintf(ci->fh, "%s\n", (char *)list->data);
|
|
}
|