From e30e935d35c5024a3d27abfda73957f28969584f Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 31 Jan 2024 14:48:52 -0500 Subject: add dedicated undefined behavior handler, simplify most checks --- src/stdlib/__stdlib.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/stdlib') diff --git a/src/stdlib/__stdlib.c b/src/stdlib/__stdlib.c index d1006bec..10117f1e 100644 --- a/src/stdlib/__stdlib.c +++ b/src/stdlib/__stdlib.c @@ -1,11 +1,9 @@ #include "_stdlib.h" -#if ! (__STDC_VERSION__ >= 201112 && defined __STDC_WANT_LIB_EXT1__) -#define abort_handler_s __abort_handler_s -#endif - struct __stdlib __stdlib = { + #if __STDC_VERSION__ >= 201112 && defined __STDC_WANT_LIB_EXT1__ .constraint_handler = abort_handler_s, + #endif }; /* -- cgit v1.2.1