1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 02:05:16 +03:00
aports/testing/dk/fix-musl.patch
prspkt ce0d6cab6f testing/dk: upgrade to 1.2
- Guard against the glibc specific __GNUC_PREREQ feature.
2021-05-25 19:48:51 +00:00

15 lines
281 B
Diff

--- a/src/dk.h
+++ b/src/dk.h
@@ -17,8 +17,10 @@
#endif
#ifndef NAN
- #if __GNUC_PREREQ (3, 3)
- #define NAN (__builtin_nanf(""))
+ #if defined(__GLIBC__)
+ #if __GNUC_PREREQ (3, 3)
+ #define NAN (__builtin_nanf(""))
+ #endif
#else
#define NAN (0.0f / 0.0f)
#endif