mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-29 09:18:36 +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);
|
||||
}
|
||||
catch (...) {
|
||||
err = "exception caught loading plugin";
|
||||
musik::debug::err(TAG, "exception while loading plugin " + filename);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (err != NULL || (err = dlerror()) != NULL) {
|
||||
|
@ -52,6 +52,10 @@
|
||||
typedef unsigned long long UINT64;
|
||||
typedef long long __int64;
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define STDCALL(fp) (* fp)()
|
||||
#else
|
||||
#define STDCALL(fp) (* fp)() __attribute__((stdcall))
|
||||
#endif
|
||||
#define _ASSERT assert
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user