diff --git a/Sources/integrations/kinc.c b/Sources/integrations/kinc.c index f3b58e6..bcfe3f5 100644 --- a/Sources/integrations/kinc.c +++ b/Sources/integrations/kinc.c @@ -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 \n"); fprintf(output, "#include \n"); fprintf(output, "#include \n"); @@ -315,6 +318,8 @@ void kinc_export(char *directory, api_kind api) { } } + fprintf(output, "#endif\n"); + fclose(output); }