summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/xstrtol.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/xstrtol.c b/lib/xstrtol.c
index cd85a3f93..00d4b117b 100644
--- a/lib/xstrtol.c
+++ b/lib/xstrtol.c
@@ -21,6 +21,8 @@
# include <config.h>
#endif
+/* Some pre-ANSI implementations (e.g. SunOS 4)
+ need stderr defined if assertion checking is enabled. */
#include <stdio.h>
#if STDC_HEADERS
@@ -36,12 +38,6 @@
# endif
#endif
-/* Some pre-ANSI implementations (e.g. SunOS 4)
- need stderr defined if assertion checking is enabled. */
-#ifndef NDEBUG
-# include <stdio.h>
-#endif
-
#include <assert.h>
#include <errno.h>