Skip to content

Commit 7638640

Browse files
committed
Fix GH-10659: hash/xxhash applying build upstream fix
ref: Cyan4973/xxHash@6189ecd replacing the C++ compile time assert for C11 one. Closes GH-10693.
1 parent bf68d10 commit 7638640

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/hash/xxhash/xxhash.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1546,8 +1546,7 @@ static void* XXH_memcpy(void* dest, const void* src, size_t size)
15461546
/* note: use after variable declarations */
15471547
#ifndef XXH_STATIC_ASSERT
15481548
# if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
1549-
# include <assert.h>
1550-
# define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { static_assert((c),m); } while(0)
1549+
# define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { _Static_assert((c),m); } while(0)
15511550
# elif defined(__cplusplus) && (__cplusplus >= 201103L) /* C++11 */
15521551
# define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { static_assert((c),m); } while(0)
15531552
# else

0 commit comments

Comments
 (0)