]> git.lizzy.rs Git - dragonnet.git/commitdiff
Fix missing includes
authorElias Fleckenstein <eliasfleckenstein@web.de>
Sat, 22 Jan 2022 17:47:06 +0000 (18:47 +0100)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Sat, 22 Jan 2022 17:47:06 +0000 (18:47 +0100)
typegen/main.c

index 6c397defaa02a27609b3ffe54ca1344bdcae61ae..8186f4f490bf3d697955d365156776c39b15e964 100644 (file)
@@ -560,7 +560,10 @@ int main(__attribute((unused)) int argc, __attribute((unused)) char **argv)
        fprintf(h_fp, "\tThis file was automatically generated by Dragonnet.\n");
        fprintf(h_fp, "\tDo NOT edit it manually. Instead, edit types.dnet and re-run DragonnetTypegen.\n");
        fprintf(h_fp, "*/\n\n");
+       fprintf(h_fp, "#include <dragonnet/peer.h>\n\n");
        fprintf(h_fp, "#include <dragontype/number.h>\n\n");
+       fprintf(h_fp, "#include <stddef.h>\n");
+       fprintf(h_fp, "#include <stdbool.h>\n");
        fprintf(h_fp, "#define htobe8(x) (x)\n");
        fprintf(h_fp, "#define be8toh(x) (x)\n\n");
        fprintf(h_fp, "typedef char *string;\n\n");