Skip to content

Commit e07680e

Browse files
committed
Do not compile dlopen for FMUs
1 parent b6f2d8b commit e07680e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

SimulationRuntime/c/util/omc_msvc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,12 @@ char *mkdtemp(char *tpl)
217217
return NULL;
218218
}
219219

220+
#if !defined(OMC_MINIMAL_RUNTIME)
220221
void* omc_dlopen(const char *filename, int flag)
221222
{
222223
return (void*) LoadLibrary(filename);
223224
}
225+
#endif
224226

225227
#include <windows.h>
226228

SimulationRuntime/c/util/omc_msvc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ int vasprintf(char **strp, const char *fmt, va_list ap);
118118
unsigned int alarm (unsigned int seconds);
119119
#endif
120120

121-
#if defined(__MINGW32__) || defined(_MSC_VER)
121+
#if (defined(__MINGW32__) || defined(_MSC_VER)) && !defined(OMC_MINIMAL_RUNTIME)
122122
static int RTLD_LAZY=0;
123123
char* mkdtemp(char *tpl);
124124
void* omc_dlopen(const char *filename, int flag);

0 commit comments

Comments
 (0)