From 19e0c2c6ba797ce20504495d033013caebc25a42 Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Tue, 7 Mar 2017 16:06:09 +0000 Subject: [PATCH] - populate mandatory includes --- src/stubser/stubser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stubser/stubser.c b/src/stubser/stubser.c index 1a3f37c..9a22fe8 100644 --- a/src/stubser/stubser.c +++ b/src/stubser/stubser.c @@ -234,6 +234,10 @@ STATIC int8_t createStub(char *aOutput, char *aNoSuffix, cfunction_list_t *aFunc fprintf(cfile, "/* @file %s"NEWLINES, gnu_basename(cFileName)); fprintf(cfile, " * @details"NEWLINES" * This is a stub for CUnit.\\n"NEWLINES); fprintf(cfile, " * - generated by stubser -"NEWLINES" */" NEWLINES NEWLINES); + fprintf(cfile, "#include "NEWLINES); + fprintf(cfile, "#include \"xtypes.h\""NEWLINES); + fprintf(cfile, "#include \"stub.h\""NEWLINES); + fprintf(cfile, "#include \"%s\""NEWLINES NEWLINES, gnu_basename(cHeaderName)); fprintf(cheader, "/* @file %s"NEWLINES, gnu_basename(cHeaderName)); fprintf(cheader, " * @details"NEWLINES" * This is a stub header.\\n"NEWLINES);