From cff4806d8d1440ce83c2806a93f9a44970538258 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Tue, 18 Aug 2020 23:25:57 -0700 Subject: [PATCH] windows: fix build if pch were to be disabled --- Source/Core/Common/GL/GLContext.cpp | 2 +- Source/Core/DolphinQt/MainWindow.cpp | 2 +- Source/Core/DolphinQt/MainWindow.h | 1 + Source/Core/VideoBackends/Vulkan/VulkanLoader.h | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Core/Common/GL/GLContext.cpp b/Source/Core/Common/GL/GLContext.cpp index d6969bcb55..2f72204af8 100644 --- a/Source/Core/Common/GL/GLContext.cpp +++ b/Source/Core/Common/GL/GLContext.cpp @@ -9,7 +9,7 @@ #if defined(__APPLE__) #include "Common/GL/GLInterface/AGL.h" #endif -#if defined(WIN32) +#if defined(_WIN32) #include "Common/GL/GLInterface/WGL.h" #endif #if HAVE_X11 diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index ddc09bb825..bee3158052 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -26,7 +26,7 @@ #include "QtUtils/SignalDaemon.h" #endif -#ifndef WIN32 +#ifndef _WIN32 #include #endif diff --git a/Source/Core/DolphinQt/MainWindow.h b/Source/Core/DolphinQt/MainWindow.h index 63141ec2d3..5e5c32a01c 100644 --- a/Source/Core/DolphinQt/MainWindow.h +++ b/Source/Core/DolphinQt/MainWindow.h @@ -7,6 +7,7 @@ #include #include +#include #include #include #include diff --git a/Source/Core/VideoBackends/Vulkan/VulkanLoader.h b/Source/Core/VideoBackends/Vulkan/VulkanLoader.h index dc22c7177a..2a006067d3 100644 --- a/Source/Core/VideoBackends/Vulkan/VulkanLoader.h +++ b/Source/Core/VideoBackends/Vulkan/VulkanLoader.h @@ -6,7 +6,7 @@ #define VK_NO_PROTOTYPES -#if defined(WIN32) +#if defined(_WIN32) #define VK_USE_PLATFORM_WIN32_KHR #endif