Skip to content

Commit

Permalink
- Minor update for Visual C++ (get rid of the directory separator in …
Browse files Browse the repository at this point in the history
…front of the file name).

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@6483 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Daniel Hedberg committed Oct 20, 2010
1 parent 0de311e commit 26b7806
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Compiler/runtime/systemimpl.c
Expand Up @@ -430,10 +430,8 @@ RML_BEGIN_LABEL(System__basename)
const char *str = RML_STRINGDATA(rmlA0);
#if defined(__MINGW32__) || defined(_MSC_VER)
const char* res = strrchr(str, '\\');
if (res == NULL) {
res = strrchr(str, '/');
if (res == NULL) { res = str; }
}
if (res == NULL) { res = strrchr(str, '/'); }
if (res == NULL) { res = str; } else { ++res; }
rmlA0 = (void*) mk_scon(res);
#else
char *copy = strdup(str);
Expand Down

0 comments on commit 26b7806

Please sign in to comment.