Handle PGI/Intel Compilers

Jakub Jelinek jakub@redhat.com
Wed Nov 14 10:08:00 GMT 2001


On Thu, Nov 15, 2001 at 09:52:08AM +0100, Andreas Jaeger wrote:
> --- features.h	2001/11/01 04:23:17	1.29
> +++ features.h	2001/11/15 08:51:55
> @@ -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__)) \
> +    ||  __STDC_VERSION >= 199901L

This should be
    || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)
instead.

> +# 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

	Jakub



More information about the Libc-hacker mailing list