Fixed a bunch of warnings regarding shared library calling convention on OSX.

This commit is contained in:
Casey Langen 2016-05-27 11:47:00 -07:00
parent 161785688b
commit ebd9a44288
2 changed files with 6 additions and 1 deletions

View File

@ -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) {

View File

@ -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