We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aac23be commit cd7ed0fCopy full SHA for cd7ed0f
libcppunitx/module_loader.cpp
@@ -106,21 +106,29 @@ namespace
106
void module::open(const char *const name)
107
{
108
close();
109
+#if HAVE_DLFCN_H
110
_native_handle = dlopen(name, RTLD_LAZY);
111
+#endif
112
}
113
114
void module::close()
115
116
117
native_handle_type handle = nullptr;
118
std::swap(_native_handle, handle);
119
if (handle != nullptr) {
120
dlclose(handle);
121
122
123
124
125
void *module::sym(const char *symbol)
126
127
128
return dlsym(_native_handle, symbol);
129
+#else
130
+ return nullptr;
131
132
133
134
void ltmodule::open(const char *const name)
0 commit comments