]> granicus.if.org Git - gc/commitdiff
Move 'include setjmp.h' from mach_dep.c to gc_priv.h
authorIvan Maidanski <ivmai@mail.ru>
Sat, 29 Sep 2012 09:13:01 +0000 (13:13 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 29 Sep 2012 09:13:01 +0000 (13:13 +0400)
* include/private/gc_priv.h: Include setjmp.h unconditionally (since
SETJMP/LONGJMP is always defined).
* mach_dep.c: Remove redundant include setjmp.h.

include/private/gc_priv.h
mach_dep.c

index 0df1a2281138acf06147821db3760e17d6ab84ae..a7a2bb8643c112b924c1026642ab7ceab0f1615e 100644 (file)
@@ -2303,12 +2303,13 @@ GC_INNER ptr_t GC_store_debug_info(ptr_t p, word sz, const char *str,
 # define GC_SEM_INIT_PSHARED 0
 #endif
 
+#include <setjmp.h>
+
 /* Some macros for setjmp that works across signal handlers     */
 /* were possible, and a couple of routines to facilitate        */
 /* catching accesses to bad addresses when that's               */
 /* possible/needed.                                             */
 #if defined(UNIX_LIKE) || (defined(NEED_FIND_LIMIT) && defined(CYGWIN32))
-# include <setjmp.h>
 # if defined(SUNOS5SIGS) && !defined(FREEBSD) && !defined(LINUX)
 #  include <sys/siginfo.h>
 # endif
index 6a615cdedaf326416faeb9bad4eb9e972d8d6255..dec9e7dfe9dbd24f1ae6c867c827752471dfa31b 100644 (file)
@@ -15,7 +15,6 @@
 #include "private/gc_priv.h"
 
 #include <stdio.h>
-#include <setjmp.h>
 
 #ifdef AMIGA
 # ifndef __GNUC__