summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2021-07-16 03:02:00 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2021-07-16 21:43:02 +0200
commitd3748cad73f5a4bc11e6cd0ad178a8828676e45e (patch)
tree1c5dd1275315a12f2c49129bb8db4ceb75cee8f1 /src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp
parentMerge pull request #6579 from ameerj/float-settings (diff)
downloadyuzu-d3748cad73f5a4bc11e6cd0ad178a8828676e45e.tar
yuzu-d3748cad73f5a4bc11e6cd0ad178a8828676e45e.tar.gz
yuzu-d3748cad73f5a4bc11e6cd0ad178a8828676e45e.tar.bz2
yuzu-d3748cad73f5a4bc11e6cd0ad178a8828676e45e.tar.lz
yuzu-d3748cad73f5a4bc11e6cd0ad178a8828676e45e.tar.xz
yuzu-d3748cad73f5a4bc11e6cd0ad178a8828676e45e.tar.zst
yuzu-d3748cad73f5a4bc11e6cd0ad178a8828676e45e.zip
Diffstat (limited to '')
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp
index 3401ad4b4..b6049b032 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp
@@ -15,6 +15,12 @@
#include "video_core/renderer_vulkan/renderer_vulkan.h"
#include "yuzu_cmd/emu_window/emu_window_sdl2_vk.h"
+#ifdef YUZU_USE_EXTERNAL_SDL2
+// Include this before SDL.h to prevent the external from including a dummy
+#define USING_GENERATED_CONFIG_H
+#include <SDL_config.h>
+#endif
+
// Include these late to avoid polluting everything with Xlib macros
// Ignore -Wimplicit-fallthrough due to https://github.com/libsdl-org/SDL/issues/4307
#ifdef __clang__