This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] fix include files to support non-GNU compilers
- From: Andreas Schwab <schwab at suse dot de>
- To: Mikulas Patocka <mpatocka at redhat dot com>
- Cc: Richard Henderson <rth at twiddle dot net>, libc-alpha at sourceware dot org
- Date: Mon, 01 Sep 2014 09:00:57 +0200
- Subject: Re: [PATCH] fix include files to support non-GNU compilers
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot LRH dot 2 dot 02 dot 1408311629460 dot 27738 at file01 dot intranet dot prod dot int dot rdu2 dot redhat dot com>
Mikulas Patocka <mpatocka@redhat.com> writes:
> Index: glibc/libio/stdio.h
> ===================================================================
> --- glibc.orig/libio/stdio.h
> +++ glibc/libio/stdio.h
> @@ -74,7 +74,7 @@ typedef struct _IO_FILE __FILE;
> #include <libio.h>
>
> #if defined __USE_XOPEN || defined __USE_XOPEN2K8
> -# ifdef __GNUC__
> +# if defined(__GNUC__) && __GNUC__ >= 3
__GNUC_PREREQ (3, 0)
> Index: glibc/bits/wchar.h
> ===================================================================
> --- glibc.orig/bits/wchar.h
> +++ glibc/bits/wchar.h
> @@ -32,6 +32,8 @@
>
> #ifdef __WCHAR_MAX__
> # define __WCHAR_MAX __WCHAR_MAX__
> +#elif defined(__DECC)
Please drop the parens.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."