mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
glib/gprintf.c Don't define _GNU_SOURCE on Windows, as _GNU_SOURCE has
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
This commit is contained in:
parent
402d950ec7
commit
b1557680dd
@ -1,3 +1,10 @@
|
||||
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()
|
||||
|
@ -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>
|
||||
|
@ -19,7 +19,9 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifndef _WIN32
|
||||
#define _GNU_SOURCE /* For vasprintf */
|
||||
#endif
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
|
Loading…
Reference in New Issue
Block a user