From: Kevin Bowling Date: Thu, 23 Dec 2010 06:24:01 +0000 (-0700) Subject: Eliminate a couple more manual internal _GNU_SOURCE defines X-Git-Tag: release-2.1.1-alpha~320^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c51ef9307ad04d8e98487d1331f1910941e50390;p=libevent Eliminate a couple more manual internal _GNU_SOURCE defines --- diff --git a/buffer.c b/buffer.c index 50908b19..94a30bc5 100644 --- a/buffer.c +++ b/buffer.c @@ -26,6 +26,7 @@ */ #include "event2/event-config.h" +#include "event-private.h" #ifdef WIN32 #include @@ -34,8 +35,9 @@ #endif #ifdef _EVENT_HAVE_VASPRINTF -/* If we have vasprintf, we need to define this before we include stdio.h. */ -#define _GNU_SOURCE +/* If we have vasprintf, we need to define _GNU_SOURCE before we include + * stdio.h. This comes from event-private.h. + */ #endif #include diff --git a/evutil.c b/evutil.c index 2cb33370..5c2e8395 100644 --- a/evutil.c +++ b/evutil.c @@ -26,7 +26,7 @@ #include "event2/event-config.h" -#define _GNU_SOURCE +#include "event-private.h" #ifdef WIN32 #include