]> Savannah Git Hosting - gnulib.git/commitdiff
stdio: don't redefine __USE_MINGW_ANSI_STDIO
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 16 Sep 2016 07:37:14 +0000 (00:37 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 16 Sep 2016 07:37:59 +0000 (00:37 -0700)
* 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

ChangeLog
m4/stdio_h.m4

index 8d0b408bb66fbdaf4f4a7d4bd42ae41da2d0b2aa..6609e2b4cc02aa6f3b13ee66af16e3cfea6ebee5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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()
index 5149981a8043dc496deacb8a20e49a755adad882..eaa25a01d49b01119daee8f1e2e63efdcb0515f8 100644 (file)
@@ -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 @@ dnl with or without modifications, as long as this notice is preserved.
 
 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])