From: Paul Eggert <eggert@cs.ucla.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Gnulib bugs <bug-gnulib@gnu.org>, emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master updated (3c586e1 -> 0bbf00c)
Date: Fri, 16 Sep 2016 00:58:04 -0700 [thread overview]
Message-ID: <803a917e-3184-d0fc-16ec-580f7acd54ab@cs.ucla.edu> (raw)
In-Reply-To: <83eg4k5nlu.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 826 bytes --]
Eli Zaretskii wrote:
> I don't like the idea that Gnulib should dictate whether Emacs uses
> this MinGW feature or not. If there are good reasons for that (can
> you tell what they are?),
Setting __USE_MINGW_ANSI_STDIO is part of Gnulib's usual desire to support a
GNU-like environment even on non-GNU hosts.
Formerly, defining __USE_MINGW_ANSI_STDIO to 1 was done by
AC_USE_SYSTEM_EXTENSIONS (defined in m4/extensions.m4), but as this is not
really a system extension I recently moved that definition to gl_STDIO_H
(defined in m4/stdio_h.m4). When I did this I used a simple AC_DEFINE to 1, as I
assumed this would suffice. Evidently it does not work for Emacs, so I just now
adjusted the moved version in Emacs master (and in Gnulib) to look more like the
original, as per the attached Emacs patch.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Update-from-gnulib.patch --]
[-- Type: text/x-diff; name="0001-Update-from-gnulib.patch", Size: 1607 bytes --]
From e95f7f74203d165bbaec8f5cf29ecc7758b974f0 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Fri, 16 Sep 2016 00:55:40 -0700
Subject: [PATCH] Update from gnulib
This incorporates:
2016-09-16 extensions: fix typo in comment
2016-09-16 stdio: don't redefine __USE_MINGW_ANSI_STDIO
* m4/extensions.m4, m4/stdio_h.m4: Copy from gnulib.
---
m4/extensions.m4 | 2 +-
m4/stdio_h.m4 | 10 ++++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/m4/extensions.m4 b/m4/extensions.m4
index 3a556b1..e114a6f 100644
--- a/m4/extensions.m4
+++ b/m4/extensions.m4
@@ -1,4 +1,4 @@
-# serial 14 -*- Autoconf -*-
+# serial 15 -*- Autoconf -*-
# Enable extensions on systems that normally disable them.
# Copyright (C) 2003, 2006-2016 Free Software Foundation, Inc.
diff --git a/m4/stdio_h.m4 b/m4/stdio_h.m4
index 5149981..eaa25a0 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 @@
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])
--
2.7.4
next prev parent reply other threads:[~2016-09-16 7:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-16 7:07 [Emacs-diffs] master updated (3c586e1 -> 0bbf00c) Eli Zaretskii
2016-09-16 7:58 ` Paul Eggert [this message]
2016-09-16 8:32 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=803a917e-3184-d0fc-16ec-580f7acd54ab@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=bug-gnulib@gnu.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.