all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: Paul Eggert <eggert@cs.ucla.edu>, Wolfgang Jenkner <wjenkner@inode.at>
Cc: Andy Moreton <andrewjmoreton@gmail.com>, 22522@debbugs.gnu.org
Subject: bug#22522: Commit b88e9cded7ae3756e3a2ec4a23e8df352a0239f9 breaks emacs dumping for me
Date: Tue, 2 Feb 2016 22:18:36 -0500	[thread overview]
Message-ID: <56B1718C.6060809@cornell.edu> (raw)
In-Reply-To: <56B14544.9010609@cornell.edu>

On 2/2/2016 7:09 PM, Ken Brown wrote:
> What about an ad hoc temporary solution that simply defines
> __ISO_C_VISIBLE to be 2011 on Cygwin prior to the inclusion of
> <stdlib.h>?  Or do you have a better idea?

Something like this?

diff --git a/src/conf_post.h b/src/conf_post.h
index c5eec5a..1cb4953 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -221,7 +221,17 @@ extern char *emacs_getenv_TZ (void);
  extern int emacs_setenv_TZ (char const *);

  #include <string.h>
+
+/* On Cygwin as of 2016-02-02 __ISO_C_VISIBLE is defined to be 1999 if
+   _GNU_SOURCE is defined.  This hides the declaration of
+   aligned_alloc in <stdlib.h> */
+#ifdef CYGWIN
+#pragma push_macro("__ISO_C_VISIBLE")
+#undef __ISO_C_VISIBLE
+#define __ISO_C_VISIBLE 2011
  #include <stdlib.h>
+#pragma pop_macro("__ISO_C_VISIBLE")
+#endif

  #if __GNUC__ >= 3  /* On GCC 3.0 we might get a warning.  */
  #define NO_INLINE __attribute__((noinline))

Ken





  reply	other threads:[~2016-02-03  3:18 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-01 13:37 bug#22522: Commit b88e9cded7ae3756e3a2ec4a23e8df352a0239f9 breaks emacs dumping for me Elric Milon
2016-02-01 22:27 ` Andy Moreton
2016-02-02  2:59   ` Ken Brown
2016-02-02 14:20     ` Wolfgang Jenkner
2016-02-02 14:36       ` Wolfgang Jenkner
2016-02-02 20:25       ` Ken Brown
2016-02-02 22:02         ` Andy Moreton
2016-02-02 22:32           ` Ken Brown
2016-02-02 22:08         ` Ken Brown
2016-02-02 22:54           ` Paul Eggert
2016-02-03  0:09             ` Ken Brown
2016-02-03  3:18               ` Ken Brown [this message]
2016-02-03  8:41               ` Paul Eggert
2016-02-03 13:35                 ` Ken Brown
2016-02-03 14:01                   ` Andy Moreton
2016-02-03 18:30                     ` Ken Brown
2016-02-02 17:34     ` Paul Eggert
2016-02-02 18:28       ` Ken Brown
2016-02-02 17:26 ` Paul Eggert
2016-02-02 21:14   ` Elric Milon
2016-02-02 23:02     ` Paul Eggert

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=56B1718C.6060809@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=22522@debbugs.gnu.org \
    --cc=andrewjmoreton@gmail.com \
    --cc=eggert@cs.ucla.edu \
    --cc=wjenkner@inode.at \
    /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.