Skip to content

Commit

Permalink
Merge pull request #878 from thestr4ng3r/lion
Browse files Browse the repository at this point in the history
fix build with Apple clang 4.2 on Mac OS X Lion
  • Loading branch information
Cyan4973 authored Oct 23, 2023
2 parents 44f6769 + be3840d commit 6a9c99a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion xxh_x86dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ extern "C" {
/*! @cond Doxygen ignores this part */
#ifndef XXH_HAS_INCLUDE
# ifdef __has_include
# define XXH_HAS_INCLUDE(x) __has_include(x)
/*
* Not defined as XXH_HAS_INCLUDE(x) (function-like) because
* this causes segfaults in Apple Clang 4.2 (on Mac OS X 10.7 Lion)
*/
# define XXH_HAS_INCLUDE __has_include
# else
# define XXH_HAS_INCLUDE(x) 0
# endif
Expand Down
6 changes: 5 additions & 1 deletion xxhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -3676,7 +3676,11 @@ XXH_PUBLIC_API XXH64_hash_t XXH64_hashFromCanonical(XXH_NOESCAPE const XXH64_can

#ifndef XXH_HAS_INCLUDE
# ifdef __has_include
# define XXH_HAS_INCLUDE(x) __has_include(x)
/*
* Not defined as XXH_HAS_INCLUDE(x) (function-like) because
* this causes segfaults in Apple Clang 4.2 (on Mac OS X 10.7 Lion)
*/
# define XXH_HAS_INCLUDE __has_include
# else
# define XXH_HAS_INCLUDE(x) 0
# endif
Expand Down

0 comments on commit 6a9c99a

Please sign in to comment.