aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2023-05-08 20:44:50 +0000
committerJan Beich <jbeich@FreeBSD.org>2023-05-08 20:47:16 +0000
commita4362765a606564b36d8aa9ebef38440f14aa465 (patch)
treea221a81d8b7c65e4e6c47558122358d288ae32ea
parentb70a205a961effe644f2c9c48f8874e1c965276e (diff)
qt_common: consistently ifdef QPlatform after cbd79df23375
src/yuzu/qt_common.cpp:45:33: error: member access into incomplete type 'QPlatformNativeInterface' wsi.display_connection = pni->nativeResourceForWindow("display", window); ^ /usr/include/qt6/QtGui/qguiapplication.h:20:7: note: forward declaration of 'QPlatformNativeInterface' class QPlatformNativeInterface; ^ src/yuzu/qt_common.cpp:47:42: error: member access into incomplete type 'QPlatformNativeInterface' wsi.render_surface = window ? pni->nativeResourceForWindow("surface", window) : nullptr; ^ /usr/include/qt6/QtGui/qguiapplication.h:20:7: note: forward declaration of 'QPlatformNativeInterface' class QPlatformNativeInterface; ^
-rw-r--r--src/yuzu/qt_common.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/qt_common.cpp b/src/yuzu/qt_common.cpp
index 5ac9fe310c..5d0fd7674a 100644
--- a/src/yuzu/qt_common.cpp
+++ b/src/yuzu/qt_common.cpp
@@ -8,7 +8,7 @@
#include "core/frontend/emu_window.h"
#include "yuzu/qt_common.h"
-#ifdef __linux__
+#if !defined(WIN32) && !defined(__APPLE__)
#include <qpa/qplatformnativeinterface.h>
#endif