You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/simde/files/simde-0.7.6-musl.patch

19 lines
894 B

This workaround patch should be removable when musl implements C23
functions (technically this isn't a __GLIBC__-only quirk, but used
due to lack of anything better beside running a build test for it).
https://bugs.gentoo.org/926488
https://github.com/simd-everywhere/simde/issues/1001
--- a/simde/simde-math.h
+++ b/simde/simde-math.h
@@ -1182,3 +1182,3 @@
#if \
- (!defined(HEDLEY_EMSCRIPTEN_VERSION) && HEDLEY_HAS_BUILTIN(__builtin_roundeven)) || \
+ (defined (__GLIBC__) && !defined(HEDLEY_EMSCRIPTEN_VERSION) && HEDLEY_HAS_BUILTIN(__builtin_roundeven)) || \
HEDLEY_GCC_VERSION_CHECK(10,0,0)
@@ -1202,3 +1202,3 @@
#if \
- (!defined(HEDLEY_EMSCRIPTEN_VERSION) && HEDLEY_HAS_BUILTIN(__builtin_roundevenf)) || \
+ (defined(__GLIBC__) && !defined(HEDLEY_EMSCRIPTEN_VERSION) && HEDLEY_HAS_BUILTIN(__builtin_roundevenf)) || \
HEDLEY_GCC_VERSION_CHECK(10,0,0)