Skip to content

Commit

Permalink
Output an include guard for kong.h
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Jun 10, 2024
1 parent add78d9 commit c446aef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/integrations/kinc.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ void kinc_export(char *directory, api_kind api) {

FILE *output = fopen(filename, "wb");

fprintf(output, "#ifndef KONG_INTEGRATION_HEADER\n");
fprintf(output, "#define KONG_INTEGRATION_HEADER\n");

fprintf(output, "#include <kinc/graphics4/constantbuffer.h>\n");
fprintf(output, "#include <kinc/graphics4/pipeline.h>\n");
fprintf(output, "#include <kinc/graphics4/vertexbuffer.h>\n");
Expand Down Expand Up @@ -315,6 +318,8 @@ void kinc_export(char *directory, api_kind api) {
}
}

fprintf(output, "#endif\n");

fclose(output);
}

Expand Down

0 comments on commit c446aef

Please sign in to comment.