commit e93e9325285eafba1afd60e56a6afb400cf9c8f3
parent acfa9f6ce8295b2493b4e21b73463b93ef3c4333
Author: jvoisin <julien.voisin@dustri.org>
Date: Tue, 22 Aug 2023 19:36:46 +0200
Increase portability
If the compiler doesn't know about `__builtin_trap`,
use `abort` instead.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/include/fortify-headers.h b/include/fortify-headers.h
@@ -21,6 +21,9 @@
#error a compiler with __has_builtin support is required
#endif
+#if ! __has_builtin(__builtin_trap)
+#define __builtin_trap abort
+#endif
#ifdef __clang__