diff --git a/src/rttr/detail/library/library_unix.cpp b/src/rttr/detail/library/library_unix.cpp index 7c8393b6..ce8dbeab 100644 --- a/src/rttr/detail/library/library_unix.cpp +++ b/src/rttr/detail/library/library_unix.cpp @@ -34,9 +34,33 @@ #include "rttr/detail/misc/utility.h" #include -#include #include +#if defined __has_include +#if __has_include() +#include +#else + +#define RTLD_NOW 0 + +void* dlopen(const char* file, int mode) { + return nullptr; +} + +char* dlerror(void) { + static char error[] = "Not supported"; + return error; +} + +int dlclose(void* handle) { + return 1; +} + +#endif +#else +#include +#endif + namespace {