From 1e00c3ca25e4b45ec7e246d953b6f51d0aabe7dc Mon Sep 17 00:00:00 2001 From: Thomas Beutlich Date: Mon, 18 Nov 2024 16:53:45 +0100 Subject: [PATCH] Update Modelica/Resources/C-Sources/ModelicaInternal.c Co-authored-by: Hans Olsson --- Modelica/Resources/C-Sources/ModelicaInternal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modelica/Resources/C-Sources/ModelicaInternal.c b/Modelica/Resources/C-Sources/ModelicaInternal.c index 7d7a01186d..fd52540c32 100644 --- a/Modelica/Resources/C-Sources/ModelicaInternal.c +++ b/Modelica/Resources/C-Sources/ModelicaInternal.c @@ -424,6 +424,7 @@ static ModelicaFileType Internal_stat(_In_z_ const char* name) { /* _stat accepts both "a:\dir" and "a:\dir\" */ #else /* _stat requires "a:\dir" instead of "a:\dir\" */ + /* required for VS 2013 and earlier */ else if (NULL != firstSlash && len > 1 && ('/' == name[len - 1] || '\\' == name[len - 1])) { char* nameTmp = (char*)malloc(len*(sizeof(char)));