From 045ef05f887bb9cfca3122febc0448b774b753e4 Mon Sep 17 00:00:00 2001 From: Craig Carnell <1188869+cscd98@users.noreply.github.com> Date: Thu, 19 Feb 2026 12:56:21 +0000 Subject: [PATCH] mingw: fix use of undefined __callback --- Source/Core/Common/WindowsDevice.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Core/Common/WindowsDevice.cpp b/Source/Core/Common/WindowsDevice.cpp index 34a540ed7b..1dc9b7c9d2 100644 --- a/Source/Core/Common/WindowsDevice.cpp +++ b/Source/Core/Common/WindowsDevice.cpp @@ -12,6 +12,12 @@ #include "Common/CommonFuncs.h" #include "Common/Logging/Log.h" +#ifdef __MINGW32__ +#ifndef __callback +#define __callback +#endif +#endif + namespace Common { std::optional GetPropertyHelper(auto function, auto dev,