From 5299712672949040adf0e731902eb927404a8bc3 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sat, 29 Sep 2012 13:13:01 +0400 Subject: [PATCH] Move 'include setjmp.h' from mach_dep.c to gc_priv.h * 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 | 3 ++- mach_dep.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index 0df1a228..a7a2bb86 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -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 + /* 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 # if defined(SUNOS5SIGS) && !defined(FREEBSD) && !defined(LINUX) # include # endif diff --git a/mach_dep.c b/mach_dep.c index 6a615cde..dec9e7df 100644 --- a/mach_dep.c +++ b/mach_dep.c @@ -15,7 +15,6 @@ #include "private/gc_priv.h" #include -#include #ifdef AMIGA # ifndef __GNUC__ -- 2.40.0