From 7ddf768dad85f1f6b5f3abb245c49c00e63b7111 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 1 Mar 2019 19:47:48 -0500 Subject: don't explicitly check for errors to be defined, the compiler will catch it --- errno.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/errno.c b/errno.c index 4851969..3418970 100644 --- a/errno.c +++ b/errno.c @@ -1,27 +1,12 @@ #include #include "test.h" -#ifndef EDOM -#error EDOM not defined -#endif - -#ifndef ERANGE -#error ERANGE not defined -#endif - -#if __STDC_VERSION__ >= 199409 -#ifndef EILSEQ -#error EILSEQ not defined -#endif -#endif - void test_errno_h(void) { - struct lconv *lc; int errno_values[] = { EDOM, ERANGE, - #ifdef EILSEQ + #if defined __STDC_VERSION__ EILSEQ, #endif }; -- cgit v1.2.1