diff options
author | Andreas Jaeger <aj@suse.de> | 2001-11-19 10:12:15 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2001-11-19 10:12:15 +0000 |
commit | 5224e27c9e10f21ecd00675707f59edbe91c8449 (patch) | |
tree | b7f1311a1b2181e29ae956c926a80432bdfae06a /include/features.h | |
parent | a41179fd9e2bad91e726a65a026b859dc56edc8d (diff) | |
download | glibc-5224e27c9e10f21ecd00675707f59edbe91c8449.tar glibc-5224e27c9e10f21ecd00675707f59edbe91c8449.tar.gz glibc-5224e27c9e10f21ecd00675707f59edbe91c8449.tar.bz2 glibc-5224e27c9e10f21ecd00675707f59edbe91c8449.zip |
* 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.
Diffstat (limited to 'include/features.h')
-rw-r--r-- | include/features.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/features.h b/include/features.h index 2e16874792..a34e26f52c 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 |