diff --git a/Modelica/Resources/C-Sources/ModelicaInternal.c b/Modelica/Resources/C-Sources/ModelicaInternal.c index 05f091e7d2..a1354e4a8f 100644 --- a/Modelica/Resources/C-Sources/ModelicaInternal.c +++ b/Modelica/Resources/C-Sources/ModelicaInternal.c @@ -384,10 +384,12 @@ void ModelicaInternal_mkdir(_In_z_ const char* directoryName) { void ModelicaInternal_rmdir(_In_z_ const char* directoryName) { /* Remove directory */ -#if defined(__WATCOMC__) || defined(__LCC__) || defined(_POSIX_) || defined(__GNUC__) +#if defined(__WATCOMC__) || defined(__LCC__) int result = rmdir(directoryName); #elif defined(__BORLANDC__) || defined(_WIN32) int result = _rmdir(directoryName); +#elif defined(_POSIX_) || defined(__GNUC__) + int result = rmdir(directoryName); #else ModelicaNotExistError("ModelicaInternal_rmdir"); #endif