From 34aca9dc2a0165b46ed39ea451ca3dcde70cbeb5 Mon Sep 17 00:00:00 2001 From: icex2 Date: Tue, 21 Mar 2023 23:59:36 +0100 Subject: [PATCH] chore(dev): Disable formatting on some files to prevent header resorting This leads to compiler errors as windows.h is expected to be the first header included for other windows related header files. --- src/main/hook/process.c | 3 +++ src/main/jbhook-util-p3io/mixer.c | 3 +++ src/main/popnhook-util/mixer.c | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/main/hook/process.c b/src/main/hook/process.c index 7d98cf2..afa59f0 100644 --- a/src/main/hook/process.c +++ b/src/main/hook/process.c @@ -1,5 +1,8 @@ +// clang-format off +// Don't format because the order is important here #include #include +// clang-format on #include #include diff --git a/src/main/jbhook-util-p3io/mixer.c b/src/main/jbhook-util-p3io/mixer.c index 692a6d9..eacd5c3 100644 --- a/src/main/jbhook-util-p3io/mixer.c +++ b/src/main/jbhook-util-p3io/mixer.c @@ -1,7 +1,10 @@ #define LOG_MODULE "jbhook-mixer" +// clang-format off +// Don't format because the order is important here #include #include +// clang-format on #include "hook/table.h" diff --git a/src/main/popnhook-util/mixer.c b/src/main/popnhook-util/mixer.c index 44d8b19..78f3bde 100644 --- a/src/main/popnhook-util/mixer.c +++ b/src/main/popnhook-util/mixer.c @@ -1,7 +1,10 @@ #define LOG_MODULE "jbhook-mixer" +// clang-format off +// Don't format because the order is important here #include #include +// clang-format on #include "hook/table.h"