22 lines
453 B
C
22 lines
453 B
C
#ifndef CROSSPLATFORMLIB_H
|
|
#define CROSSPLATFORMLIB_H
|
|
|
|
#include <QString>
|
|
|
|
#ifdef _WIN32
|
|
#include <Windows.h>
|
|
#define LibAddress GetProcAddress
|
|
#define LibClose FreeModule
|
|
#define ModulePtr HMODULE
|
|
#elif defined(__linux__) || defined(__APPLE__)
|
|
#include <dlfcn.h>
|
|
#define LibAddress dlsym
|
|
#define LibClose dlclose
|
|
#define ModulePtr void*
|
|
#endif
|
|
|
|
ModulePtr LibLoad(const QString& filename);
|
|
QStringList LibFilter();
|
|
|
|
#endif // CROSSPLATFORMLIB_H
|