summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
};