Skip to content

Commit ddfe234

Browse files
committed
gguf-hash: missing stdalign.h in windows bypass
1 parent e705f23 commit ddfe234

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/gguf-hash/deps/xxhash/xxhash.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,7 +1688,11 @@ struct XXH64_state_s {
16881688
#ifndef XXH_NO_XXH3
16891689

16901690
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* >= C11 */
1691+
/* This check is a workaround for missing stdalign.h found in https://github.com/deepmind/mujoco/issues/862 */
1692+
/* Once users stop using Windows SDK under 10.0.22000 we can drop this check */
1693+
#if (_MSC_VER >= 1000)
16911694
# include <stdalign.h>
1695+
#endif
16921696
# define XXH_ALIGN(n) alignas(n)
16931697
#elif defined(__cplusplus) && (__cplusplus >= 201103L) /* >= C++11 */
16941698
/* In C++ alignas() is a keyword */

0 commit comments

Comments
 (0)