Bug#168346: gcc-2.95: C99 symbols in limits.h not defined
Package: gcc-2.95
Version: 1:2.95.4-11
Severity: normal
kronstadt:~$ cat test_limits.c
#include <limits.h>
int
main()
{
char* llong_not;
char* long_long_not;
#ifdef LLONG_MAX
llong_not = "";
#else
llong_not = "_not_ ";
#endif
#ifdef LONG_LONG_MAX
long_long_not = "";
#else
long_long_not = "_not_ ";
#endif
printf("LLONG_MAX %sdefined\n", llong_not);
printf("LONG_LONG_MAX %sdefined\n", long_long_not);
return 0;
}
kronstadt:~$ gcc test_limits.c
kronstadt:~$ ./a.out
LLONG_MAX _not_ defined
LONG_LONG_MAX _not_ defined
kronstadt:~$ gcc -D_ISOC99_SOURCE test_limits.c
kronstadt:~$ ./a.out
LLONG_MAX _not_ defined
LONG_LONG_MAX _not_ defined
kronstadt:~$ gcc -D_GNU_SOURCE test_limits.c
kronstadt:~$ ./a.out
LLONG_MAX _not_ defined
LONG_LONG_MAX defined
-- System Information
Debian Release: woody
Kernel Version: Linux kronstadt 2.4.19 #7 Thu Oct 17 12:23:38 PDT 2002 i586 unknown
Versions of the packages gcc-2.95 depends on:
ii binutils 2.12.90.0.1-5 The GNU assembler, linker and binary utiliti
ii cpp-2.95 2.95.4-11 The GNU C preprocessor.
ii gcc 2.95.4-14 The GNU C compiler.
ii libc6 2.2.5-14.3 GNU C Library: Shared libraries and Timezone
Reply to: