summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-03-01 19:47:48 -0500
committerJakob Kaivo <jkk@ung.org>2019-03-01 19:47:48 -0500
commit7ddf768dad85f1f6b5f3abb245c49c00e63b7111 (patch)
tree0b7b91582b90237d4237ea00baba399f6c1076e8
parent1ee4fe83d74978f44eb61b23dda9c258f4af82b1 (diff)
don't explicitly check for errors to be defined, the compiler will catch it
-rw-r--r--errno.c17
1 files changed, 1 insertions, 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 <errno.h>
#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
};