[build] msquic: fix static MinGW linking

This commit is contained in:
Geoffrey McRae
2026-09-30 16:36:21 +10:00
parent cd27ffb06e
commit c8196b9f99
3 changed files with 32 additions and 1 deletions

View File

@@ -111,6 +111,7 @@ list(APPEND MSQUIC_CLANG_CL_OPTIONS
"/clang:-Wno-int-conversion"
"/clang:-Wno-unused-function"
"/clang:-Wno-incompatible-pointer-types"
"/clang:-Wno-duplicate-decl-specifier"
"/FI${MSQUIC_COMPAT_HEADER}")
list(JOIN MSQUIC_CLANG_CL_OPTIONS " " MSQUIC_CLANG_CL_FLAGS)

View File

@@ -22,7 +22,7 @@
#define _H_LG_MSQUIC_MINGW_COMPAT_
#ifndef FORCEINLINE
#define FORCEINLINE __inline__ __attribute__((__always_inline__))
#define FORCEINLINE __forceinline
#endif
#ifndef EXTERN_C_START
@@ -43,6 +43,10 @@
#include <string.h>
#ifndef __cplusplus
#define inline static __inline__
#endif
#undef UNREFERENCED_PARAMETER
#define UNREFERENCED_PARAMETER(parameter) ((void)(parameter))