Browse Source

mingw related fixes

Signed-off-by: falkTX <falktx@falktx.com>
v6.1.6-distrho
falkTX 3 years ago
parent
commit
11e0bec9a7
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 18 additions and 12 deletions
  1. +1
    -1
      modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp
  2. +0
    -3
      modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp
  3. +13
    -8
      modules/juce_gui_basics/juce_gui_basics.cpp
  4. +4
    -0
      modules/juce_gui_basics/native/juce_win32_Windowing.cpp

+ 1
- 1
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp View File

@@ -61,7 +61,7 @@ JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996 4100)
#define PRAGMA_ALIGN_SUPPORTED 1
#endif
#if ! JUCE_MSVC
#if ! JUCE_WINDOWS
#define __cdecl
#endif


+ 0
- 3
modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp View File

@@ -64,9 +64,6 @@ JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4355)
#ifndef WM_APPCOMMAND
#define WM_APPCOMMAND 0x0319
#endif
extern "C" void _fpreset();
extern "C" void _clearfp();
#elif ! JUCE_WINDOWS
static void _fpreset() {}
static void _clearfp() {}


+ 13
- 8
modules/juce_gui_basics/juce_gui_basics.cpp View File

@@ -67,9 +67,12 @@
#include <vfw.h>
#include <commdlg.h>
#include <commctrl.h>
#include <UIAutomation.h>
#include <sapi.h>
#if JUCE_MSVC
#include <UIAutomation.h>
#endif
#if JUCE_WEB_BROWSER
#include <exdisp.h>
#include <exdispid.h>
@@ -308,13 +311,15 @@ JUCE_END_IGNORE_WARNINGS_GCC_LIKE
#include "native/juce_mac_MouseCursor.mm"
#elif JUCE_WINDOWS
#include "native/accessibility/juce_win32_ComInterfaces.h"
#include "native/accessibility/juce_win32_WindowsUIAWrapper.h"
#include "native/accessibility/juce_win32_AccessibilityElement.h"
#include "native/accessibility/juce_win32_UIAHelpers.h"
#include "native/accessibility/juce_win32_UIAProviders.h"
#include "native/accessibility/juce_win32_AccessibilityElement.cpp"
#include "native/accessibility/juce_win32_Accessibility.cpp"
#if JUCE_MSVC
#include "native/accessibility/juce_win32_ComInterfaces.h"
#include "native/accessibility/juce_win32_WindowsUIAWrapper.h"
#include "native/accessibility/juce_win32_AccessibilityElement.h"
#include "native/accessibility/juce_win32_UIAHelpers.h"
#include "native/accessibility/juce_win32_UIAProviders.h"
#include "native/accessibility/juce_win32_AccessibilityElement.cpp"
#include "native/accessibility/juce_win32_Accessibility.cpp"
#endif
#include "native/juce_win32_Windowing.cpp"
#include "native/juce_win32_DragAndDrop.cpp"
#include "native/juce_win32_FileChooser.cpp"


+ 4
- 0
modules/juce_gui_basics/native/juce_win32_Windowing.cpp View File

@@ -1519,8 +1519,10 @@ public:
// do this first to avoid messages arriving for this window before it's destroyed
JuceWindowIdentifier::setAsJUCEWindow (hwnd, false);
#if JUCE_MSVC
if (isAccessibilityActive)
WindowsAccessibility::revokeUIAMapEntriesForWindow (hwnd);
#endif
shadower = nullptr;
currentTouches.deleteAllTouchesForPeer (this);
@@ -4052,6 +4054,7 @@ private:
case WM_GETDLGCODE:
return DLGC_WANTALLKEYS;
#if JUCE_MSVC
case WM_GETOBJECT:
{
if (static_cast<long> (lParam) == WindowsAccessibility::getUiaRootObjectId())
@@ -4070,6 +4073,7 @@ private:
break;
}
#endif
default:
break;
}


Loading…
Cancel
Save