21 #ifndef CROSSPLATFORMLIB_H 22 #define CROSSPLATFORMLIB_H 28 #define LibAddress GetProcAddress 29 #define LibClose FreeModule 30 #define ModulePtr HMODULE 31 #elif defined(__linux__) || defined(__APPLE__) 33 #define LibAddress dlsym 34 #define LibClose dlclose 35 #define ModulePtr void* 38 ModulePtr
LibLoad(
const QString& filename);
42 #include <CoreFoundation/CoreFoundation.h> 45 CFBundleRef BundleLoad(
const QString& filename);
46 void BundleClose(CFBundleRef bundle);
49 #endif // CROSSPLATFORMLIB_H