This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] fix include files to support non-GNU compilers


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]