From 5224e27c9e10f21ecd00675707f59edbe91c8449 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 19 Nov 2001 10:12:15 +0000 Subject: * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for compilers that support it. * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG. * sysdeps/unix/sysv/linux/bits/types.h: Likewise. * stdlib/stdlib.h: Likewise. --- include/features.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/features.h') diff --git a/include/features.h b/include/features.h index 2e16874..a34e26f 100644 --- a/include/features.h +++ b/include/features.h @@ -277,6 +277,14 @@ #define __GLIBC_PREREQ(maj, min) \ ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min)) +/* Decide whether a compiler supports the long long datatypes. */ +#if defined __GNUC__ \ + || (defined __PGI && defined __i386__ ) \ + || (defined __INTEL_COMPILER && (defined __i386__ || defined __ia64__)) \ + || (defined __STDC_VERSION && __STDC_VERSION >= 199901L) +# define __GLIBC_HAVE_LONG_LONG 1 +#endif + /* This is here only because every header file already includes this one. */ #ifndef __ASSEMBLER__ # ifndef _SYS_CDEFS_H -- cgit v1.1