From 1e574bf0ea7e8315207889ad6637391821637acb Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 7 Jan 2011 12:16:20 +0200 Subject: [PATCH] Use __builtin_unwind_init in MinGW builds of w32 port. config.nt (HAVE___BUILTIN_UNWIND_INIT) [GCC >= 2.8]: Define. --- nt/ChangeLog | 4 ++++ nt/config.nt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/nt/ChangeLog b/nt/ChangeLog index 31aa081af9c..d1c0cf504ba 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,7 @@ +2011-01-07 Eli Zaretskii + + * config.nt (HAVE___BUILTIN_UNWIND_INIT) [GCC >= 2.8]: Define. + 2011-01-02 Eli Zaretskii * configure.bat (end): Unset environment variables used by this diff --git a/nt/config.nt b/nt/config.nt index 3df58a29ba3..92e466d185a 100644 --- a/nt/config.nt +++ b/nt/config.nt @@ -287,6 +287,10 @@ along with GNU Emacs. If not, see . */ #define EXTERNALLY_VISIBLE #endif +#if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8)) +#define HAVE___BUILTIN_UNWIND_INIT 1 +#endif + #undef EMACS_CONFIGURATION #undef EMACS_CONFIG_OPTIONS