]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 10 Sep 1998 16:44:49 +0000 (16:44 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 10 Sep 1998 16:44:49 +0000 (16:44 +0000)
* include/limits.h: Include gcc's header even if this file is
found more than once before it (PR libc/778)

ChangeLog
include/limits.h

index 2749ca4a322b3c84f97b4bfe897bb1562dba6650..1efe006f5d61bce228a7a6854364998211ecd70c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 1998-09-10  Ulrich Drepper  <drepper@cygnus.com>
 
+       * include/limits.h: Include gcc's header even if this file is
+       found more than once before it (PR libc/778)
+
        * sysdeps/unix/sysv/linux/Makefile (subdirs==misc)
        [sysdep_headers]: Remove sys/debugreg.h.
        * sysdeps/unix/sysv/linux/i386/Makefile (subdirs==misc)
index b149ba1a73b666e87591dccd51a32feb9073eaf7..21520f3c94af6682ef3ce4170ab87b9477a90abe 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1996, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 #define MB_LEN_MAX     6
 
 
-#if __GNUC__ >= 2
-
- /* Get the compiler's limits.h, which defines all the ANSI constants.  */
-# ifndef _GCC_LIMITS_H_                /* This is what GCC's file defines.  */
-#  include_next <limits.h>
-# endif
-
-#else  /* Not GCC 2.  */
+/* If we are not using GNU CC we have to define all the symbols ourself.
+   Otherwise use gcc's definitions (see below).  */
+#if !defined __GNUC__ || __GNUC__ < 2
 
 /* We only protect from multiple inclusion here, because all the other
    #include's protect themselves, and in GCC 2 we may #include_next through
 #endif /* GCC 2.  */
 
 #endif /* !_LIBC_LIMITS_H_ */
+
+ /* Get the compiler's limits.h, which defines almost all the ISO constants.
+
+    We put this #include_next outside the double inclusion check because
+    it should be possible to include this file more than once and still get
+    the definitions from gcc's header.  */
+#if defined __GNUC__ && !defined _GCC_LIMITS_H_
+/* `_GCC_LIMITS_H_' is what GCC's file defines.  */
+# include_next <limits.h>
+#endif