mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 22:52:09 +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>
|
2008-09-26 Dan Winship <danw@gnome.org>
|
||||||
|
|
||||||
Bug 553447 – g_assert_no_error()
|
Bug 553447 – g_assert_no_error()
|
||||||
|
@ -16,12 +16,14 @@
|
|||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
||||||
USA. */
|
USA. */
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
/* Tell glibc's <stdio.h> to provide a prototype for snprintf().
|
/* Tell glibc's <stdio.h> to provide a prototype for snprintf().
|
||||||
This must come before <config.h> because <config.h> may include
|
This must come before <config.h> because <config.h> may include
|
||||||
<features.h>, and once <features.h> has been included, it's too late. */
|
<features.h>, and once <features.h> has been included, it's too late. */
|
||||||
#ifndef _GNU_SOURCE
|
#ifndef _GNU_SOURCE
|
||||||
# define _GNU_SOURCE 1
|
# define _GNU_SOURCE 1
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include <config.h>
|
# include <config.h>
|
||||||
|
@ -19,7 +19,9 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
#define _GNU_SOURCE /* For vasprintf */
|
#define _GNU_SOURCE /* For vasprintf */
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user