aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vst/src/VstHost.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-11-14 03:34:32 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-11-14 03:34:32 +0000
commit3dbf9adf38bf8a204d1fd4dfb4345f542b486933 (patch)
tree0c4810133b5ee0db3d312cc80ccaf1f1ece735ad /externals/grill/vst/src/VstHost.h
parent45464826849ab68693a3ed21c2d50ede00c50e67 (diff)
a bit of code for OS X
editor-less Mac version svn path=/trunk/; revision=2267
Diffstat (limited to 'externals/grill/vst/src/VstHost.h')
-rw-r--r--externals/grill/vst/src/VstHost.h8
1 files changed, 7 insertions, 1 deletions
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 <flext.h>
#include "AEffectx.h"
#include "AEffEditor.hpp"
+#include <string>
#if FLEXT_OS == FLEXT_OS_WIN
#include <windows.h>
typedef HWND WHandle;
+#elif FLEXT_OS == FLEXT_OS_MAC
+#include <CoreServices/CoreServices.h>
+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