From: Dave Love Date: Tue, 28 Mar 2000 11:10:55 +0000 (+0000) Subject: Include stdio.h. Test STDC_HEADERS, not __STDC__. X-Git-Tag: emacs-pretest-21.0.90~4445 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e9b309ac910a5e3c13cca480b32a9231d76b2d9b;p=emacs.git Include stdio.h. Test STDC_HEADERS, not __STDC__. --- diff --git a/src/ChangeLog b/src/ChangeLog index d3ea1be941d..7d191333750 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 9b82d45a0bf..d7e4214c6c4 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