This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix Wundef warning for __STDC_VERSION__
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 2 Jul 2014 12:51:02 -0700 (PDT)
- Subject: Re: [PATCH] Fix Wundef warning for __STDC_VERSION__
- Authentication-results: sourceware.org; auth=none
- References: <20140702185850 dot GR20796 at spoyarek dot pnq dot redhat dot com>
> -#if !defined _Noreturn && __STDC_VERSION__ < 201112 && !__GNUC_PREREQ (4,7)
> +#if (!defined _Noreturn && defined __STDC_VERSION__ \
> + && __STDC_VERSION__ < 201112 && !__GNUC_PREREQ (4,7))
I think this wants to be:
#if (!defined _Noreturn \
&& (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \
&& !__GNUC_PREREQ (4,7))