Skip to content

Commit

Permalink
Remove absolute path in implementation header include
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisPotvinARA authored and eboasson committed Oct 29, 2024
1 parent 87ae1c4 commit 99d150a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/idlcxx/src/generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,9 +654,13 @@ print_header(FILE *fh, const char *in, const char *out)
static idl_retcode_t
print_impl_header(FILE *fh, const char *in, const char *out, const char *hdr)
{
const char *sep = hdr;
for (const char *ptr = sep; *ptr; ptr++)
if (idl_isseparator((unsigned char)*ptr))
sep = ptr+1;
const char *fmt = "#include \"%s\"\n\n";
if (print_header(fh, in, out)
|| idl_fprintf(fh, fmt, hdr) < 0)
|| idl_fprintf(fh, fmt, sep) < 0)
return IDL_RETCODE_NO_MEMORY;
return IDL_RETCODE_OK;
}
Expand Down

0 comments on commit 99d150a

Please sign in to comment.