Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix Linux GCC builds
Alex Richardson committed 5 years ago
commit ccaf760663e80b764b0b70c23c46ad0d76eeaf0a
parent ca25f43
1 file changed +5 -3
modified compat/bsd_compat.h
@@ -163,10 +163,12 @@ char * strnstr(const char *s, const char *find, size_t slen);
#endif

#ifndef __unreachable
-
# if defined(__GNUC__) && ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 6))
-
#  define __unreachable() __builtin_unreachable()
-
# elif defined(__clang__) && __has_builtin(__builtin_unreachable)
+
# if defined(__GNUC__) && ((__GNUC__ >= 4) && (__GNUC_MINOR__ >= 6))
#  define __unreachable() __builtin_unreachable()
+
# elif defined(__clang__)
+
#  if __has_builtin(__builtin_unreachable)
+
#   define __unreachable() __builtin_unreachable()
+
#  endif
# else
#  define __unreachable() ((void)0)
# endif