From c322bc9618c32bb5c5761970ff27fdb89dfd36dd Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 19 Jul 2016 15:21:56 +0200 Subject: [PATCH] compiler: apply name infix on include filenames This fixes #include output when $C.nameinfix is used. --- compiler/capnpc-c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/capnpc-c.c b/compiler/capnpc-c.c index 209a4f8..917b7df 100644 --- a/compiler/capnpc-c.c +++ b/compiler/capnpc-c.c @@ -1308,7 +1308,7 @@ int main() { for (j = 0; j < capn_len(file_req.imports); j++) { struct CodeGeneratorRequest_RequestedFile_Import im; get_CodeGeneratorRequest_RequestedFile_Import(&im, file_req.imports, j); - str_addf(&HDR, "#include \"%s.h\"\n", im.name.str); + str_addf(&HDR, "#include \"%s%s.h\"\n", im.name.str, nameinfix); } str_addf(&HDR, "\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n");