aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'options.c')
-rw-r--r--options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options.c b/options.c
index 92d24b24..ce0f1f68 100644
--- a/options.c
+++ b/options.c
@@ -127,7 +127,7 @@ static const struct option longoptions[] = {
static int xatoi(char *s, int *errflagptr)
/* do safe conversion from string to number */
{
-#if defined (__STDC__)
+#if defined (STDC_HEADERS) && defined (LONG_MAX) && defined (INT_MAX)
/* parse and convert numbers, but also check for invalid characters in
* numbers
*/