Skip to content

Commit a37706a

Browse files
committed
Update include annotations
1 parent b77c544 commit a37706a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Modelica/Utilities/Internal.mo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ end FileSystem;
256256
input Integer epoch_year = 1970 "Reference year";
257257
output Real seconds "Elapsed seconds since start of epoch_year in the current time zone";
258258
external "C" seconds = ModelicaTime_difftime(ms, sec, min, hour, day, mon, year, epoch_year)
259-
annotation (IncludeDirectory="modelica://Modelica/Resources/C-Sources", Include="#include \"ModelicaTime.c\"");
259+
annotation (IncludeDirectory="modelica://Modelica/Resources/C-Sources", Include="#include \"ModelicaTime.h\"", Library="ModelicaExternalC");
260260
annotation (Documentation(info="<html>
261261
TODO
262262
</html>"));
@@ -353,7 +353,7 @@ All returned values are of type Integer and have the following meaning:
353353
output Integer mon "Month";
354354
output Integer year "Year";
355355
external "C90" ModelicaTime_localtime(ms, sec, min, hour, day, mon, year, seconds, epoch_year)
356-
annotation (IncludeDirectory="modelica://Modelica/Resources/C-Sources", Include="#include \"ModelicaTime.c\"");
356+
annotation (IncludeDirectory="modelica://Modelica/Resources/C-Sources", Include="#include \"ModelicaTime.h\"", Library="ModelicaExternalC");
357357
annotation (Documentation(info="<html>
358358
TODO
359359
</html>"));
@@ -371,7 +371,7 @@ TODO
371371
output Integer mon "Month";
372372
output Integer year "Year";
373373
external "C" ModelicaTime_strptime(ms, sec, min, hour, day, mon, year, str, format)
374-
annotation (IncludeDirectory="modelica://Modelica/Resources/C-Sources", Include="#include \"ModelicaTime.c\"");
374+
annotation (IncludeDirectory="modelica://Modelica/Resources/C-Sources", Include="#include \"ModelicaTime.h\"", Library="ModelicaExternalC");
375375
annotation (Documentation(info="<html>
376376
TODO
377377
</html>"));
@@ -390,7 +390,7 @@ TODO
390390
input Integer maxSize = 128 "Maximal length of formatted string";
391391
output String str "Formatted date and time string";
392392
external "C" str = ModelicaTime_strftime(ms, sec, min, hour, day, mon, year, format, maxSize)
393-
annotation (IncludeDirectory="modelica://Modelica/Resources/C-Sources", Include="#include \"ModelicaTime.c\"");
393+
annotation (IncludeDirectory="modelica://Modelica/Resources/C-Sources", Include="#include \"ModelicaTime.h\"", Library="ModelicaExternalC");
394394
annotation (Documentation(info="<html>
395395
TODO
396396
</html>"));

0 commit comments

Comments
 (0)