]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[_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 42f7f24fe90e88e4b42820f6bb34af62b896e383..1d63bbeb2d660630c36373c8418a1182a3d5d463 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>