Remove __STDC__ conditionals from installed headers

Marek Polacek polacek@redhat.com
Fri Jan 27 15:22:00 GMT 2012


On 01/26/2012 11:44 PM, Roland McGrath wrote:
> That looks fine to me.  It may also make sense to get rid of the PARAMS
> macro entirely (a separate change), if standalone libintl et al aren't
> expected to support pre-1989 C any more.

I'll try to do it today.

Also, more cleanups come to mind--what about e.g.:

#ifdef __STDC__
#include <stdlib.h>
#endif

or

#if __STDC__
#include <stdarg.h>
#else
#include <varargs.h>
#endif

or

# ifdef __STDC__
#  define PTR void *
# else
#  define PTR char *

Shouldn't the __STDC__ guard eventually also go?

Oh, and one offtopic question: where does the __BOUNDED_POINTERS__ macro
come from?  Thanks,

	Marek



More information about the Libc-alpha mailing list