Skip to content

Commit

Permalink
Fix overlooked use of strncasecmp for MSVC. (#8858)
Browse files Browse the repository at this point in the history
  • Loading branch information
mahge committed Apr 25, 2022
1 parent df138c6 commit e9a0a07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OMCompiler/SimulationRuntime/c/util/utility.c
Expand Up @@ -280,6 +280,10 @@ static void getIdent(const char *str, char *this, const char **next)

extern modelica_string OpenModelica_uriToFilename_impl(threadData_t *threadData, modelica_string uri_om, const char *resourcesDir)
{
#if defined(_MSC_VER)
#define strncasecmp _strnicmp
#endif

FILE_INFO info = omc_dummyFileInfo;
char buf[PATH_MAX];
const char *uri = MMC_STRINGDATA(uri_om);
Expand Down

0 comments on commit e9a0a07

Please sign in to comment.