mirror of
https://github.com/webmproject/libwebp.git
synced 2025-08-28 23:03:20 +02:00
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
This commit is contained in:
@@ -25,10 +25,12 @@
|
|||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <shellapi.h>
|
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
|
// shellapi.h must be included after windows.h.
|
||||||
|
#include <shellapi.h>
|
||||||
|
|
||||||
// Create a wchar_t array containing Unicode parameters.
|
// Create a wchar_t array containing Unicode parameters.
|
||||||
#define INIT_WARGV(ARGC, ARGV) \
|
#define INIT_WARGV(ARGC, ARGV) \
|
||||||
int wargc; \
|
int wargc; \
|
||||||
|
Reference in New Issue
Block a user