Plugin: load shared libraries on Windows
Add a private dlopen/dlsym/dlclose compatibility shim over LoadLibraryW / GetProcAddress and use it from the loader, host and manager. Allowlist Plugin for the Windows target. Verified with the Windows cross build under Wine 11 (x86_64-w64-mingw32 GCC 16.2): Plugin suite 6 tests, 5 passed, 1 skipped, 0 failed.
This commit is contained in:
1 parent
6fa77eed93
commit
b6e2181f0e
5 files changed
+86
No files matched your search
@@ -5,6 +5,9 @@
|
||||
#if defined(__unix__) || defined(__APPLE__)
|
||||
#include <dlfcn.h>
|
||||
#define VOID_HAS_DLOPEN 1
|
||||
#elif defined(_WIN32)
|
||||
#include "DlCompat.hpp"
|
||||
#define VOID_HAS_DLOPEN 1
|
||||
#endif
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
Reference in new issue
Block a user