1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef LIB_HANDLER_H
- #define LIB_HANDLER_H
- #include "glob_opts.h"
- #ifdef IS_WINDOWS
- #include <windows.h>
- typedef HINSTANCE soHandle_t;
- #else
- #include <unistd.h>
- #include <dlfcn.h>
- typedef void *soHandle_t;
- #endif
- #ifdef IS_WINDOWS
- #define SHAREDLIBEXT "dll"
- #elif defined IS_MAC
- #define SHAREDLIBEXT "dylib"
- #else
- #define SHAREDLIBEXT "so"
- #endif
- soHandle_t lh_load_lib(const char* libname);
- c_int lh_unload_lib(soHandle_t libhandle);
- #endif
|