[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#160840: libc6-dev: Work around for LLONG_MAX on 2.95.x in limits.h is never reached...



Package: libc6-dev
Version: 2.2.5-11.1
Severity: normal

 In limits.h there is a work around for gcc-2.95.x not having LLONG_MAX
 defined, however it does...

#if defined __GNUC__ && !defined _GCC_LIMITS_H_
/* `_GCC_LIMITS_H_' is what GCC's file defines.  */
# include_next <limits.h>

...before the work around and so is never used because _GCC_LIMITS_H_ is
always defined. The following program shows the behaviour...

#define _GNU_SOURCE 1
#if 0
# include <limits.h>
#else
# include </usr/include/limits.h>
#endif

int main(void)
{
        return (!LLONG_MAX);
}


...changing the #if to 1 will make the program not compile.

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux va 2.2.18pre11- #7 SMP Mon Feb 12 00:14:53 EST 2001 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages libc6-dev depends on:
ii  libc6                         2.2.5-11.1 GNU C Library: Shared libraries an




Reply to: