From 3dbf9adf38bf8a204d1fd4dfb4345f542b486933 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sun, 14 Nov 2004 03:34:32 +0000 Subject: a bit of code for OS X editor-less Mac version svn path=/trunk/; revision=2267 --- externals/grill/vst/src/VstHost.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'externals/grill/vst/src/VstHost.h') diff --git a/externals/grill/vst/src/VstHost.h b/externals/grill/vst/src/VstHost.h index f49bf959..ef466a87 100644 --- a/externals/grill/vst/src/VstHost.h +++ b/externals/grill/vst/src/VstHost.h @@ -13,10 +13,14 @@ WARRANTIES, see the file, "license.txt," in this distribution. #include #include "AEffectx.h" #include "AEffEditor.hpp" +#include #if FLEXT_OS == FLEXT_OS_WIN #include typedef HWND WHandle; +#elif FLEXT_OS == FLEXT_OS_MAC +#include +typedef Handle WHandle; #else #error Platform not supported! #endif @@ -54,7 +58,7 @@ public: bool Is() const { return _pEffect != NULL; } - ULONG GetVersion() const { return _pEffect?_pEffect->version:0; } + long GetVersion() const { return _pEffect?_pEffect->version:0; } bool IsSynth() const { return HasFlags(effFlagsIsSynth); } bool IsReplacing() const { return HasFlags(effFlagsCanReplacing); } @@ -139,6 +143,8 @@ protected: #if FLEXT_OS == FLEXT_OS_WIN HMODULE h_dll; +#elif FLEXT_OS == FLEXT_OS_MAC + void *h_dll; #else #error #endif -- cgit v1.2.1