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 LRESULT CALLBACK
wndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); wndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);


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


PuglInternals* PuglInternals*
puglInitInternals() puglInitInternals()


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

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


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

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


// config fix // config fix
#include "CarlaDefines.h"
#include "distrho-mverb/DistrhoPluginInfo.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 # undef DISTRHO_PLUGIN_HAS_UI
# define DISTRHO_PLUGIN_HAS_UI 0 # define DISTRHO_PLUGIN_HAS_UI 0
#endif #endif
@@ -26,7 +27,7 @@
// Plugin Code // Plugin Code
#include "distrho-mverb/DistrhoArtworkMVerb.cpp" #include "distrho-mverb/DistrhoArtworkMVerb.cpp"
#include "distrho-mverb/DistrhoPluginMVerb.cpp" #include "distrho-mverb/DistrhoPluginMVerb.cpp"
#ifdef HAVE_DGL
#if DISTRHO_PLUGIN_HAS_UI
#include "distrho-mverb/DistrhoUIMVerb.cpp" #include "distrho-mverb/DistrhoUIMVerb.cpp"
#include "distrho-mverb/font/Kh-Kangrey.cpp" #include "distrho-mverb/font/Kh-Kangrey.cpp"
#endif #endif
@@ -34,7 +35,7 @@
// DISTRHO Code // DISTRHO Code
#define DISTRHO_PLUGIN_TARGET_CARLA #define DISTRHO_PLUGIN_TARGET_CARLA
#include "DistrhoPluginMain.cpp" #include "DistrhoPluginMain.cpp"
#ifdef HAVE_DGL
#if DISTRHO_PLUGIN_HAS_UI
#include "DistrhoUIMain.cpp" #include "DistrhoUIMain.cpp"
#endif #endif


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


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


Loading…
Cancel
Save