From db608edd71d1c39366c0212384eb13d61bacd0f2 Mon Sep 17 00:00:00 2001 From: James Zern Date: Mon, 4 Aug 2025 11:26:00 -0700 Subject: [PATCH] unicode.h: fix include order on windows shellapi.h must be included after windows.h; fixes: /Windows Kits/10/Include/10.0.26100.0/um/shellapi.h|68 col 1| error: unknown type name 'EXTERN_C' when building using VS 2022 after: 44257cb8 apply clang-format Bug: 433996651 Change-Id: I8f340cdaf6d6b315f1b7535710847db786599da1 --- examples/unicode.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/unicode.h b/examples/unicode.h index 1a8581c9..1c8883c6 100644 --- a/examples/unicode.h +++ b/examples/unicode.h @@ -25,10 +25,12 @@ #include #include -#include #include #include +// shellapi.h must be included after windows.h. +#include + // Create a wchar_t array containing Unicode parameters. #define INIT_WARGV(ARGC, ARGV) \ int wargc; \