glib r7576 - in branches/glib-2-18: . glib glib/gnulib
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7576 - in branches/glib-2-18: . glib glib/gnulib
- Date: Wed, 8 Oct 2008 20:27:52 +0000 (UTC)
Author: tml
Date: Wed Oct 8 20:27:52 2008
New Revision: 7576
URL: http://svn.gnome.org/viewvc/glib?rev=7576&view=rev
Log:
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.
Modified:
branches/glib-2-18/ChangeLog
branches/glib-2-18/glib/gnulib/vasnprintf.c
branches/glib-2-18/glib/gprintf.c
Modified: branches/glib-2-18/glib/gnulib/vasnprintf.c
==============================================================================
--- branches/glib-2-18/glib/gnulib/vasnprintf.c (original)
+++ branches/glib-2-18/glib/gnulib/vasnprintf.c Wed Oct 8 20:27:52 2008
@@ -16,12 +16,14 @@
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>
Modified: branches/glib-2-18/glib/gprintf.c
==============================================================================
--- branches/glib-2-18/glib/gprintf.c (original)
+++ branches/glib-2-18/glib/gprintf.c Wed Oct 8 20:27:52 2008
@@ -19,7 +19,9 @@
#include "config.h"
+#ifndef _WIN32
#define _GNU_SOURCE /* For vasprintf */
+#endif
#include <stdarg.h>
#include <stdlib.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]