Skip to content

Commit

Permalink
Fix LCC build (modelica#3784)
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Jun 9, 2022
1 parent 79e63f5 commit 8690ef6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions Modelica/Resources/C-Sources/ModelicaInternal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ void ModelicaInternal_setenv(_In_z_ const char* name,
if (1 == convertFromSlash) {
ModelicaConvertFromUnixDirectorySeparator(&buf[strlen(name) + 1]);
}
#if defined(__WATCOMC__) || defined(__BORLANDC__)
#if defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__LCC__)
result = putenv(buf);
#else
result = _putenv(buf);
Expand Down Expand Up @@ -1353,13 +1353,10 @@ void ModelicaInternal_getTime(_Out_ int* ms, _Out_ int* sec, _Out_ int* min, _Ou
{
#if defined(__BORLANDC__)
struct timeb timebuffer;
ftime( &timebuffer ); /* Retrieve ms time */
#else
struct _timeb timebuffer;
#endif
#if defined(__BORLANDC__) || defined(__LCC__)
ftime( &timebuffer ); /* Retrieve ms time */
#else
_ftime( &timebuffer ); /* Retrieve ms time */
_ftime( &timebuffer ); /* Retrieve ms time */
#endif
ms0 = (int)(timebuffer.millitm); /* Convert unsigned int to int */
}
Expand Down
2 changes: 1 addition & 1 deletion Modelica/Resources/C-Sources/stdint_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#if defined(_WIN32)
#if defined(_MSC_VER) && _MSC_VER >= 1600
#define HAVE_MODELICA_STDINT_H 1
#elif defined(__WATCOMC__) || defined(__MINGW32__) || defined(__CYGWIN__)
#elif defined(__WATCOMC__) || defined(__MINGW32__) || defined(__CYGWIN__) || defined(__LCC__)
#define HAVE_MODELICA_STDINT_H 1
#else
#undef HAVE_MODELICA_STDINT_H
Expand Down

0 comments on commit 8690ef6

Please sign in to comment.