/* * Wrappers to emulate dlopen() on other systems like Windows */ #pragma once #include #if defined(_WIN32) #include void* wrap_dlopen(const char* filename); void* wrap_dlsym(void* h, const char* sym); int wrap_dlclose(void* h); #else /* assume we can use dlopen itself... */ #include void* wrap_dlopen(const char* filename); void* wrap_dlsym(void* h, const char* sym); int wrap_dlclose(void* h); #endif