This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Problems with evolving feature test macros?
- From: Paul Eggert <eggert at cs dot ucla dot edu>
- To: mtk dot manpages at gmail dot com, "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Tue, 11 Mar 2014 09:07:36 -0700
- Subject: Re: Problems with evolving feature test macros?
- Authentication-results: sourceware.org; auth=none
- References: <CAKgNAki3SzAN8rZjvMQxbqDkpRGBzsmNGBKMJ0DDcMAG0nG8gQ at mail dot gmail dot com>
On 03/11/2014 07:44 AM, Michael Kerrisk (man-pages) wrote:
I'm guessing programmers will reach for
the only hammer that does not cause a compiler warning on any glibc
version:
#define _GNU_SOURCE
That's what most application developers should do, who run into this
problem. There's even an Autoconf macro for it: AC_USE_SYSTEM_EXTENSIONS.
That seems to be a very unfortunate situation.
It's typically only a minor annoyance.