Skip to content

Commit 084bee9

Browse files
committed
Change header file from _fileNamePrefix.h to fileNamePrefix_model.h
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15054 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent e792cd3 commit 084bee9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Compiler/Template/CodegenC.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ template translateModel(SimCode simCode)
7272

7373
// workaround for <%fileNamePrefix%>.h with an underscore, because we have
7474
// for example a ModelicaUtilities.h in the runtime
75-
let()= textFile(simulationHeaderFile(simCode,guid), '_<%fileNamePrefix%>.h')
75+
let()= textFile(simulationHeaderFile(simCode,guid), '<%fileNamePrefix%>_model.h')
7676
// adpro: write the main .c file last! Make on windows doesn't seem to realize that
7777
// the .c file is newer than the .o file if we have succesive simulate commands
7878
// for the same model (i.e. see testsuite/linearize/simextfunction.mos).
@@ -128,7 +128,7 @@ template simulationFile(SimCode simCode, String guid)
128128
<<
129129
<%simulationFileHeader(simCode)%>
130130
<%externalFunctionIncludes(externalFunctionIncludes)%>
131-
#include "_<%fileNamePrefix%>.h"
131+
#include "<%fileNamePrefix%>_model.h"
132132
#include "<%fileNamePrefix%>_functions.c"
133133
/* dummy VARINFO and FILEINFO */
134134
const FILE_INFO dummyFILE_INFO = omc_dummyFileInfo;

0 commit comments

Comments
 (0)