The attached patch adds more definitions to sal.h and specstrings.h that were missing. Many of them are needed to compile the hclient example HID GUI from Microsoft.
Could someone please apply this? Thanks! --David
diff --git a/mingw-w64-headers/include/sal.h b/mingw-w64-headers/include/sal.h index fe0d92b..bad907f 100644 --- a/mingw-w64-headers/include/sal.h +++ b/mingw-w64-headers/include/sal.h @@ -94,6 +94,7 @@ #define _Outptr_opt_result_bytebuffer_(s) #define _Outptr_result_buffer_to_(s, c) #define _Outptr_result_bytebuffer_to_(s, c) +#define _Outptr_result_bytebuffer_maybenull_(s) #define _Outptr_opt_result_buffer_to_(s, c) #define _Outptr_opt_result_bytebuffer_to_(s, c) #define _Result_nullonfailure_ @@ -181,7 +182,31 @@ #define _Post_readable_byte_size_(s) #define _Post_writable_byte_size_(s) +/* Field properties */ +#define _Field_size_(s) +#define _Field_size_full_(s) +#define _Field_size_full_opt_(s) +#define _Field_size_opt_(s) +#define _Field_size_part_(s, c) +#define _Field_size_part_opt_(s, c) +#define _Field_size_bytes_(size) +#define _Field_size_bytes_full_(size) +#define _Field_size_bytes_full_opt_(s) +#define _Field_size_bytes_opt_(s) +#define _Field_size_bytes_part_(s, c) +#define _Field_size_bytes_part_opt_(s, c) +#define _Field_z_ +#define _Field_range_(min, max) + +/* Structural annotations */ +#define _At_(e, a) +#define _At_buffer_(e, i, c, a) +#define _Group_(a) +#define _When_(e, a) + +/* Analysis */ #define _Analysis_assume_(expr) +#define _Analysis_assume_nullterminated_(expr) #endif diff --git a/mingw-w64-headers/include/specstrings.h b/mingw-w64-headers/include/specstrings.h index ed0275f..485b433 100644 --- a/mingw-w64-headers/include/specstrings.h +++ b/mingw-w64-headers/include/specstrings.h @@ -279,6 +279,8 @@ extern "C" { #define SAL__control_entrypoint(category) #define SAL__data_entrypoint(category) +#define __encoded_pointer + #ifndef __fallthrough #define __fallthrough #endif
------------------------------------------------------------------------------
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public