File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
examples/gguf-hash/deps/xxhash Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1687,7 +1687,13 @@ struct XXH64_state_s {
1687
1687
1688
1688
#ifndef XXH_NO_XXH3
1689
1689
1690
- #if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* >= C11 */
1690
+ #if (defined(_MSC_VER) && (_MSC_VER >= 1000) || !defined(_MSC_VER))
1691
+
1692
+ /* Windows SDK under 10.0.22000 check is missing stdalign.h so we add a check
1693
+ before allowing the windows compiler to use the C11 form.
1694
+ Reference: https://github.com/Cyan4973/xxHash/issues/955 */
1695
+ #if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) \
1696
+ && (defined(_MSC_VER) && (_MSC_VER >= 1000 ) || !defined(_MSC_VER)) /* >= C11 */
1691
1697
# include < stdalign.h>
1692
1698
# define XXH_ALIGN (n ) alignas (n)
1693
1699
#elif defined(__cplusplus) && (__cplusplus >= 201103L) /* >= C++11 */
You can’t perform that action at this time.
0 commit comments