From: Bruno Haible Date: Tue, 29 Oct 2002 19:37:28 +0000 (+0000) Subject: Define _GNU_SOURCE. X-Git-Tag: v0.12~1239 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd2e4e342e1800f4ff1f63be5142af2babc7e14b;p=thirdparty%2Fgettext.git Define _GNU_SOURCE. --- diff --git a/libasprintf/autosprintf.cc b/libasprintf/autosprintf.cc index b7b064b42..c145d5f33 100644 --- a/libasprintf/autosprintf.cc +++ b/libasprintf/autosprintf.cc @@ -17,6 +17,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* Tell glibc's to provide a prototype for vasprintf(). + This must come before because may include + , and once has been included, it's too late. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + /* Specification. */ #include "autosprintf.h"