Re: [PATCH] gettext.c: only work around the vsnprintf bug on glibc < 2.17
- From
Andreas Schwab <schwab@linux-m68k.org>
- Date
- Nov 30, 2013, 09:51 UTC
- Message-ID
- <m2y546b4ka.fsf@linux-m68k.org>
- In-Reply-To
- <1385776291-21006-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
Show 12 quoted lines
> diff --git a/gettext.c b/gettext.c > index 71e9545..91e679d 100644 > --- a/gettext.c > +++ b/gettext.c > @@ -18,6 +18,13 @@ > # endif > #endif > > +#ifdef USE_GLIBC > +#ifndef _GNU_SOURCE > +#define _GNU_SOURCE > +#endif
Defining a feature test macro after any system header is included is undefined.
Andreas.
-- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."