2008-09-30 Tor Lillqvist <tml@novell.com>
* glib/gprintf.c
* glib/gnulib/vasnprintf.c: Don't define _GNU_SOURCE on Windows,
as _GNU_SOURCE has unintended side effects when compiling against
newest mingw headers.
svn path=/trunk/; revision=7563
+2008-09-30 Tor Lillqvist <tml@novell.com>
+
+ * glib/gprintf.c
+ * glib/gnulib/vasnprintf.c: Don't define _GNU_SOURCE on Windows,
+ as _GNU_SOURCE has unintended side effects when compiling against
+ newest mingw headers.
+
2008-09-26 Dan Winship <danw@gnome.org>
Bug 553447 – g_assert_no_error()
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA. */
+#ifndef _WIN32
/* Tell glibc's <stdio.h> to provide a prototype for snprintf().
This must come before <config.h> because <config.h> may include
<features.h>, and once <features.h> has been included, it's too late. */
#ifndef _GNU_SOURCE
# define _GNU_SOURCE 1
#endif
+#endif
#ifdef HAVE_CONFIG_H
# include <config.h>
#include "config.h"
+#ifndef _WIN32
#define _GNU_SOURCE /* For vasprintf */
+#endif
#include <stdarg.h>
#include <stdlib.h>