mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 23:43:39 +02: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:
committed by
Tor Lillqvist
parent
402d950ec7
commit
b1557680dd
@@ -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>
|
||||
|
Reference in New Issue
Block a user