* Implement POSIX dlopen for Windows. * * For unicode support, using wchar_t / LoadLibraryW. Handily, on * Windows std::filesystem::path::c_str returns a wchar_t*, so the * divergence between POSIX/Windows dlopen and path::c_str marries up * appropriately for the platform. * * Note that the second parameter, the RTLD_ mode, is ignored. Windows * approximates RTLD_LOCAL. */
| 51 | * approximates RTLD_LOCAL. |
| 52 | */ |
| 53 | void* dlopen(const wchar_t* filename, [[maybe_unused]] int mode) { return LoadLibraryW(filename); } |
| 54 | |
| 55 | /** |
| 56 | * Implement POSIX dlclose for Windows. |