modelica-3rdparty / ExternalMedia

The ExternalMedia library provides a framework for interfacing external codes computing fluid properties to Modelica.Media-compatible component models.
53 stars 36 forks source link

C99 comments #81

Closed thorade closed 1 year ago

thorade commented 1 year ago

According to MLS spec C89 should be used: https://specification.modelica.org/v3.4/Ch12.html#external-function-interface Modelon Impact uses gcc with -std=c89 and complains about the C99 comments. I will send a PR to fix it

bilderbuchi commented 1 year ago

Would Impact notice an external "C99" usage and adjust its flags accordingly?

Spec:

The language-specification must currently be one of "builtin" (deprecated), "C", "C…" (for one of the specific C standards like C89, C99, and C11 – specifying that it relies on the C standard library of that version) or "FORTRAN 77". Unless the external language is specified, it is assumed to be "C".

[The intended use of, e.g., C99 is to detect if the user tries to link with a C99-function using a C89 compiler.]