From f19178d90412a4182db9bece299a0f7aa3e69832 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Fri, 8 Apr 2022 08:49:36 +0200 Subject: [PATCH] Fix X11 polluting namespace with unity build --- src/Nazara/Platform/SDL2/WindowImpl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Nazara/Platform/SDL2/WindowImpl.cpp b/src/Nazara/Platform/SDL2/WindowImpl.cpp index 50908be62..b28e7dda6 100644 --- a/src/Nazara/Platform/SDL2/WindowImpl.cpp +++ b/src/Nazara/Platform/SDL2/WindowImpl.cpp @@ -665,3 +665,9 @@ namespace Nz DestroyWindow(winHandle);*/ //} } + +#if defined(NAZARA_PLATFORM_WINDOWS) +#include +#elif defined(NAZARA_PLATFORM_LINUX) +#include +#endif