Mercurial > gnulib
changeset 18421:a647bdee3648
stdio: don't redefine __USE_MINGW_ANSI_STDIO
* m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
if it is already defined. Apparently GNU Emacs relies on this. See:
http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00416.html
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Fri, 16 Sep 2016 00:37:14 -0700 |
parents | 6131f0e7856c |
children | 469890ba6938 |
files | ChangeLog m4/stdio_h.m4 |
diffstat | 2 files changed, 15 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Sep 14 19:36:14 2016 -0500 +++ b/ChangeLog Fri Sep 16 00:37:14 2016 -0700 @@ -1,3 +1,10 @@ +2016-09-16 Paul Eggert <eggert@cs.ucla.edu> + + stdio: don't redefine __USE_MINGW_ANSI_STDIO + * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO + if it is already defined. Apparently GNU Emacs relies on this. See: + http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00416.html + 2016-09-15 Eric Blake <eblake@redhat.com> sys_types: avoid glibc 2.25 warnings about major()
--- a/m4/stdio_h.m4 Wed Sep 14 19:36:14 2016 -0500 +++ b/m4/stdio_h.m4 Fri Sep 16 00:37:14 2016 -0700 @@ -1,4 +1,4 @@ -# stdio_h.m4 serial 47 +# stdio_h.m4 serial 48 dnl Copyright (C) 2007-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -6,7 +6,13 @@ AC_DEFUN([gl_STDIO_H], [ - AC_DEFINE([__USE_MINGW_ANSI_STDIO], 1, [Use GNU style printf and scanf.]) + AH_VERBATIM([MINGW_ANSI_STDIO], +[/* Use GNU style printf and scanf. */ +#ifndef __USE_MINGW_ANSI_STDIO +# undef __USE_MINGW_ANSI_STDIO +#endif +]) + AC_DEFINE([__USE_MINGW_ANSI_STDIO]) AC_REQUIRE([gl_STDIO_H_DEFAULTS]) gl_NEXT_HEADERS([stdio.h])