Commit 4148575b authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

At Maxime's request, provide a default for the 'STATIC' modifier.

parent 34f98001
......@@ -105,6 +105,9 @@ class ASynchronousToolGlueGenerator:
self.C_HeaderFile.write("#else\n")
self.C_HeaderFile.write("typedef unsigned size_t;\n")
self.C_HeaderFile.write("#endif\n\n")
self.C_HeaderFile.write("#ifndef STATIC\n")
self.C_HeaderFile.write("#define STATIC\n")
self.C_HeaderFile.write("#endif\n\n")
self.C_HeaderFile.write("\n")
self.C_SourceFile.write("#ifdef __unix__\n")
self.C_SourceFile.write("#include <stdio.h>\n")
......
......@@ -175,9 +175,12 @@ class SynchronousToolGlueGeneratorGeneric(Generic[TSource, TDestin]):
self.C_SourceFile.write("#ifdef __unix__\n")
self.C_SourceFile.write("#include <stdio.h>\n")
self.C_SourceFile.write("#include <string.h>\n\n")
self.C_SourceFile.write("#include <assert.h>\n\n")
self.C_SourceFile.write("#endif\n")
self.C_SourceFile.write("#include <assert.h>\n")
self.C_SourceFile.write("#endif\n\n")
self.C_SourceFile.write("#ifndef STATIC\n")
self.C_SourceFile.write("#define STATIC\n")
self.C_SourceFile.write("#endif\n\n")
self.C_SourceFile.write("#include \"%s\"\n" % outputCheaderFilename)
self.HeadersOnStartup(modelingLanguage, asnFile, subProgram, subProgramImplementation, outputDir, maybeFVname)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment