Skip to content

Commit

Permalink
Define static assert for Ghost BSD
Browse files Browse the repository at this point in the history
  • Loading branch information
starseeker committed Jul 26, 2023
1 parent 703c261 commit 834994a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/xxhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -1547,6 +1547,9 @@ static void* XXH_memcpy(void* dest, const void* src, size_t size)
#ifndef XXH_STATIC_ASSERT
# if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
# include <assert.h>
# if !defined(__cplusplus) && !defined(static_assert)
# define static_assert _Static_assert
# endif
# define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { static_assert((c),m); } while(0)
# elif defined(__cplusplus) && (__cplusplus >= 201103L) /* C++11 */
# define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { static_assert((c),m); } while(0)
Expand Down

0 comments on commit 834994a

Please sign in to comment.