diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-01-31 14:48:52 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-01-31 14:48:52 -0500 |
| commit | e30e935d35c5024a3d27abfda73957f28969584f (patch) | |
| tree | 51c1a1888db16977ddcf59ab2330b1f333f9be45 /src/stdlib | |
| parent | 78033913abfce71b1bcc075ed188c6b6ec087a13 (diff) | |
add dedicated undefined behavior handler, simplify most checks
Diffstat (limited to 'src/stdlib')
| -rw-r--r-- | src/stdlib/__stdlib.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 }; /* |
