From 3a16b2d0e808ec51fc4dd775bbf816b138c80a4e Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 11 Dec 2024 17:51:10 -0300 Subject: [PATCH] [win] Separate #includes to avoid changing its order w/clang-format In these cases #include must go first to avoid compilation errors on MSVC. --- base/memory.cpp | 1 + base/memory_dump_win32.h | 1 + os/skia/skia_window_base.h | 1 + os/win/wintab.h | 1 + 4 files changed, 4 insertions(+) diff --git a/base/memory.cpp b/base/memory.cpp index 7a0ec3e28..5ac2ec213 100644 --- a/base/memory.cpp +++ b/base/memory.cpp @@ -58,6 +58,7 @@ char* base_strdup(const char* string) #ifdef _MSC_VER #include + #include typedef USHORT (WINAPI* RtlCaptureStackBackTraceType)(ULONG, ULONG, PVOID*, PULONG); diff --git a/base/memory_dump_win32.h b/base/memory_dump_win32.h index 676eba896..58872ab17 100644 --- a/base/memory_dump_win32.h +++ b/base/memory_dump_win32.h @@ -11,6 +11,7 @@ #if LAF_WINDOWS #include + #include #endif diff --git a/os/skia/skia_window_base.h b/os/skia/skia_window_base.h index f07077a24..9357858db 100644 --- a/os/skia/skia_window_base.h +++ b/os/skia/skia_window_base.h @@ -21,6 +21,7 @@ #if SK_SUPPORT_GPU #if LAF_WINDOWS #include + #include #elif LAF_MACOS #include diff --git a/os/win/wintab.h b/os/win/wintab.h index 4713e0729..c945b2f4c 100644 --- a/os/win/wintab.h +++ b/os/win/wintab.h @@ -17,6 +17,7 @@ #include #include + #include "third_party/wacom/wintab.h" #define PACKETDATA (PK_CURSOR | PK_BUTTONS | PK_X | PK_Y | PK_NORMAL_PRESSURE)