diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-09-16 00:37:14 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-09-16 00:37:59 -0700 |
commit | 45080de2b0ba81210c0c087c6e5b17d90e470417 (patch) | |
tree | a40ed36b8174a0206a5e09bb7551b07f10c22af4 /m4/stdio_h.m4 | |
parent | a512e041120e9012e69afa2f5c3adc196ec4999a (diff) | |
download | gnulib-45080de2b0ba81210c0c087c6e5b17d90e470417.tar.gz |
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
Diffstat (limited to 'm4/stdio_h.m4')
-rw-r--r-- | m4/stdio_h.m4 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/m4/stdio_h.m4 b/m4/stdio_h.m4 index 5149981a80..eaa25a01d4 100644 --- a/m4/stdio_h.m4 +++ b/m4/stdio_h.m4 @@ -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]) |