Revert "Fix mac builds - amend b01fe8b0e"
This reverts commit 45c8944789
.
This commit is contained in:
parent
4170482aaf
commit
72242353f3
@ -27,19 +27,6 @@
|
||||
|
||||
#ifdef MACVST_SUPPORT
|
||||
#include <Carbon/Carbon.h>
|
||||
|
||||
/* fix up stupid apple macros */
|
||||
#undef check
|
||||
#undef require
|
||||
#undef verify
|
||||
|
||||
#ifdef YES
|
||||
#undef YES
|
||||
#endif
|
||||
#ifdef NO
|
||||
#undef NO
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
struct LIBARDOUR_API _VSTKey
|
||||
|
@ -39,6 +39,8 @@
|
||||
|
||||
#include "pbd/i18n.h"
|
||||
|
||||
#include <Carbon/Carbon.h>
|
||||
|
||||
/*Simple error handler stuff for VSTFX*/
|
||||
|
||||
void mac_vst_error (const char *fmt, ...)
|
||||
@ -94,6 +96,7 @@ mac_vst_load (const char *path)
|
||||
|
||||
fhandle = mac_vst_handle_new ();
|
||||
|
||||
fhandle->dll = NULL;
|
||||
fhandle->bundleRef = 0;
|
||||
|
||||
CFURLRef url;
|
||||
@ -151,9 +154,10 @@ mac_vst_unload (VSTHandle* fhandle)
|
||||
|
||||
if (fhandle->bundleRef)
|
||||
{
|
||||
CFBundleCloseBundleResourceMap (fhandle->bundleRef, fhandle->res_file_id);
|
||||
CFRelease (fhandle->bundleRef);
|
||||
fhandle->bundleRef = 0;
|
||||
CFBundleRef* bundleRefPtr = (CFBundleRef*) fhandle->dll;
|
||||
CFBundleCloseBundleResourceMap (*bundleRefPtr, (CFBundleRefNum)fhandle->res_file_id);
|
||||
CFRelease (*bundleRefPtr);
|
||||
fhandle->dll = 0;
|
||||
}
|
||||
|
||||
if (fhandle->name)
|
||||
|
Loading…
Reference in New Issue
Block a user