Skip to content

Commit

Permalink
- OMEdit: Load the ModelicaReference library (latest release preferre…
Browse files Browse the repository at this point in the history
…d over 3.1 version)

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9091 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed May 24, 2011
1 parent fd0de59 commit ae268a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/runtime/systemimpl.c
Expand Up @@ -1471,8 +1471,8 @@ int SystemImpl__getLoadModelPath(const char *name, void *prios, void *mps, const
outPrio = prio;
prio = getPrio(version,versionLen);
/* Force preferred version MSL 3.1 / MS 1.0 */
if (prio == 0 && 0 == strcmp("Modelica",name) && 0 == strcmp(version,"3.1")) prio = -1;
if (prio == 0 && 0 == strcmp("ModelicaServices",name) && 0 == strcmp(version,"1.0")) prio = -1;
if (prio == 1 && 0 == strcmp("Modelica",name) && 0 == strcmp(version,"3.1")) prio = -1;
if (prio == 1 && 0 == strcmp("ModelicaServices",name) && 0 == strcmp(version,"1.0")) prio = -1;
/* TODO: Use something better than strcmp. We need natural sort for all cases... */
if (prio < defaultPrio || (prio == defaultPrio && strcmp(version, defaultVersion) > 0)) {
defaultPrio = prio;
Expand Down

0 comments on commit ae268a2

Please sign in to comment.