mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-01 09:01:15 +00:00
Fixed a bunch of warnings regarding shared library calling convention on OSX.
This commit is contained in:
parent
161785688b
commit
ebd9a44288
@ -121,7 +121,8 @@ void PluginFactory::LoadPlugins(){
|
|||||||
dll = dlopen(filename.c_str(), RTLD_LOCAL);
|
dll = dlopen(filename.c_str(), RTLD_LOCAL);
|
||||||
}
|
}
|
||||||
catch (...) {
|
catch (...) {
|
||||||
err = "exception caught loading plugin";
|
musik::debug::err(TAG, "exception while loading plugin " + filename);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err != NULL || (err = dlerror()) != NULL) {
|
if (err != NULL || (err = dlerror()) != NULL) {
|
||||||
|
@ -52,6 +52,10 @@
|
|||||||
typedef unsigned long long UINT64;
|
typedef unsigned long long UINT64;
|
||||||
typedef long long __int64;
|
typedef long long __int64;
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#define STDCALL(fp) (* fp)()
|
||||||
|
#else
|
||||||
#define STDCALL(fp) (* fp)() __attribute__((stdcall))
|
#define STDCALL(fp) (* fp)() __attribute__((stdcall))
|
||||||
|
#endif
|
||||||
#define _ASSERT assert
|
#define _ASSERT assert
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user