From e9b309ac910a5e3c13cca480b32a9231d76b2d9b Mon Sep 17 00:00:00 2001 From: Dave Love Date: Tue, 28 Mar 2000 11:10:55 +0000 Subject: [PATCH] Include stdio.h. Test STDC_HEADERS, not __STDC__. --- src/ChangeLog | 14 ++++++++++++++ src/alloc.c | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index d3ea1be941..7d19133375 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,17 @@ +2000-03-28 Dave Love + + * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__. + +2000-03-27 gerd + + * alloc.c (mark_maybe_object): New function. + (mark_memory): Use it. + (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros. + (setjmp_tested_p, longjmp_done): New variables. + (test_setjmp): New function. + (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp. + (init_alloc): Initialize setjmp_tested_p and longjmp_done. + 2000-03-27 Stefan Monnier * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as diff --git a/src/alloc.c b/src/alloc.c index 9b82d45a0b..d7e4214c6c 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -20,6 +20,7 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include +#include /* Note that this declares bzero on OSF/1. How dumb. */ @@ -58,7 +59,7 @@ extern char *sbrk (); /* The following come from gmalloc.c. */ -#if defined (__STDC__) && __STDC__ +#if defined (STDC_HEADERS) #include #define __malloc_size_t size_t #else -- 2.39.2