Browse Source

Fix windows build

tags/1.9.6
falkTX 9 years ago
parent
commit
08d84e0f6c
3 changed files with 8 additions and 5 deletions
  1. +2
    -0
      source/modules/dgl/src/pugl/pugl_win.cpp
  2. +1
    -1
      source/native-plugins/_data.cpp
  3. +5
    -4
      source/native-plugins/distrho-mverb.cpp

+ 2
- 0
source/modules/dgl/src/pugl/pugl_win.cpp View File

@@ -52,6 +52,7 @@ static HINSTANCE hInstance = NULL;
LRESULT CALLBACK
wndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);

#if 0
extern "C" {
BOOL WINAPI
DllMain(HINSTANCE hInst, DWORD, LPVOID)
@@ -60,6 +61,7 @@ DllMain(HINSTANCE hInst, DWORD, LPVOID)
return 1;
}
} // extern "C"
#endif

PuglInternals*
puglInitInternals()


+ 1
- 1
source/native-plugins/_data.cpp View File

@@ -377,7 +377,7 @@ static const NativePluginDescriptor sNativePluginDescriptors[] = {
},
{
/* category */ NATIVE_PLUGIN_CATEGORY_DELAY,
#ifdef HAVE_DGL
#if defined(HAVE_DGL) && ! defined(CARLA_OS_WIN)
/* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
|NATIVE_PLUGIN_HAS_UI
|NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD


+ 5
- 4
source/native-plugins/distrho-mverb.cpp View File

@@ -16,9 +16,10 @@
*/

// config fix
#include "CarlaDefines.h"
#include "distrho-mverb/DistrhoPluginInfo.h"

#if DISTRHO_PLUGIN_HAS_UI && ! defined(HAVE_DGL)
#if DISTRHO_PLUGIN_HAS_UI && (defined(CARLA_OS_WIN) || ! defined(HAVE_DGL))
# undef DISTRHO_PLUGIN_HAS_UI
# define DISTRHO_PLUGIN_HAS_UI 0
#endif
@@ -26,7 +27,7 @@
// Plugin Code
#include "distrho-mverb/DistrhoArtworkMVerb.cpp"
#include "distrho-mverb/DistrhoPluginMVerb.cpp"
#ifdef HAVE_DGL
#if DISTRHO_PLUGIN_HAS_UI
#include "distrho-mverb/DistrhoUIMVerb.cpp"
#include "distrho-mverb/font/Kh-Kangrey.cpp"
#endif
@@ -34,7 +35,7 @@
// DISTRHO Code
#define DISTRHO_PLUGIN_TARGET_CARLA
#include "DistrhoPluginMain.cpp"
#ifdef HAVE_DGL
#if DISTRHO_PLUGIN_HAS_UI
#include "DistrhoUIMain.cpp"
#endif

@@ -44,7 +45,7 @@ START_NAMESPACE_DISTRHO

static const NativePluginDescriptor _mverbDesc = {
/* category */ NATIVE_PLUGIN_CATEGORY_DELAY,
#ifdef HAVE_DGL
#if DISTRHO_PLUGIN_HAS_UI
/* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
|NATIVE_PLUGIN_HAS_UI
|NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD


Loading…
Cancel
Save