Eliminate a couple more manual internal _GNU_SOURCE defines

This commit is contained in:
Kevin Bowling 2010-12-22 23:24:01 -07:00
parent 3b265412b7
commit c51ef9307a
2 changed files with 5 additions and 3 deletions

View File

@ -26,6 +26,7 @@
*/ */
#include "event2/event-config.h" #include "event2/event-config.h"
#include "event-private.h"
#ifdef WIN32 #ifdef WIN32
#include <winsock2.h> #include <winsock2.h>
@ -34,8 +35,9 @@
#endif #endif
#ifdef _EVENT_HAVE_VASPRINTF #ifdef _EVENT_HAVE_VASPRINTF
/* If we have vasprintf, we need to define this before we include stdio.h. */ /* If we have vasprintf, we need to define _GNU_SOURCE before we include
#define _GNU_SOURCE * stdio.h. This comes from event-private.h.
*/
#endif #endif
#include <sys/types.h> #include <sys/types.h>

View File

@ -26,7 +26,7 @@
#include "event2/event-config.h" #include "event2/event-config.h"
#define _GNU_SOURCE #include "event-private.h"
#ifdef WIN32 #ifdef WIN32
#include <winsock2.h> #include <winsock2.h>