]> granicus.if.org Git - libevent/commitdiff
Eliminate a couple more manual internal _GNU_SOURCE defines
authorKevin Bowling <kevin.bowling@kev009.com>
Thu, 23 Dec 2010 06:24:01 +0000 (23:24 -0700)
committerKevin Bowling <kevin.bowling@kev009.com>
Thu, 23 Dec 2010 06:24:01 +0000 (23:24 -0700)
buffer.c
evutil.c

index 50908b199e7e62b49ba197c277f362a2019141ef..94a30bc5ec5fd2ff97283ea7247bf7afe578e893 100644 (file)
--- a/buffer.c
+++ b/buffer.c
@@ -26,6 +26,7 @@
  */
 
 #include "event2/event-config.h"
+#include "event-private.h"
 
 #ifdef WIN32
 #include <winsock2.h>
@@ -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 <sys/types.h>
index 2cb333704cbfce9d7bc26412520c27cfa59777e2..5c2e8395d1eb9394e74fb6af34d9ce96fc7cd87f 100644 (file)
--- 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 <winsock2.h>