Index: export_stl.c =================================================================== --- export_stl.c (revision 32431) +++ export_stl.c (revision 32432) @@ -350,6 +350,7 @@ } } +#include "stl_models.c" int stl_hid_export_to_file(FILE *f, rnd_hid_attr_val_t *options, rnd_coord_t maxy, rnd_coord_t z0, rnd_coord_t z1) { Index: stl_models.c =================================================================== --- stl_models.c (revision 32431) +++ stl_models.c (revision 32432) @@ -31,9 +31,6 @@ #include #include -#include "safe_fs.h" -#include "error.h" - typedef struct stl_facet_s stl_facet_t; struct stl_facet_s { Index: test_load/main.c =================================================================== --- test_load/main.c (revision 32431) +++ test_load/main.c (revision 32432) @@ -1,3 +1,5 @@ +#include "safe_fs.h" +#include "error.h" #include "../stl_models.c" int main()