From c51ef9307ad04d8e98487d1331f1910941e50390 Mon Sep 17 00:00:00 2001 From: Kevin Bowling Date: Wed, 22 Dec 2010 23:24:01 -0700 Subject: [PATCH] Eliminate a couple more manual internal _GNU_SOURCE defines --- buffer.c | 6 ++++-- evutil.c | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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 -- 2.40.0