[_LIBC]: Define HAVE_LIMITS_H. [HAVE_LIMITS_H]: Include it.
authorJim Meyering <meyering@lucent.com>
Sun, 30 Jul 1995 18:48:43 +0000 (18:48 +0000)
committerJim Meyering <meyering@lucent.com>
Sun, 30 Jul 1995 18:48:43 +0000 (18:48 +0000)
stdlib/strtol.c

index 42f7f24..1d63bbe 100644 (file)
@@ -24,11 +24,18 @@ Cambridge, MA 02139, USA.  */
 #ifdef _LIBC
 # define USE_NUMBER_GROUPING
 # define STDC_HEADERS
+# define HAVE_LIMITS_H
 #endif
 
 #include <ctype.h>
 #include <errno.h>
-#include <limits.h>
+#ifndef errno
+extern int errno;
+#endif
+
+#if HAVE_LIMITS_H
+# include <limits.h>
+#endif
 
 #ifdef STDC_HEADERS
 # include <stddef.h>