From 4f27350a997be22c2f2efbfbbcc201233ca2067e Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 8 Apr 2006 16:44:27 +0000 Subject: [PATCH] [STDC_HEADERS]: Include stddef.h. --- src/ChangeLog | 2 ++ src/alloc.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 2c55dc037f8..92410490141 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2006-04-08 Eli Zaretskii + * alloc.c [STDC_HEADERS]: Include stddef.h. + * lisp.h (PSEUDOVECSIZE): Fix last change. 2006-04-08 Stefan Monnier diff --git a/src/alloc.c b/src/alloc.c index 5b42a0016a8..1d3dc10c411 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -23,6 +23,10 @@ Boston, MA 02110-1301, USA. */ #include #include /* For CHAR_BIT. */ +#ifdef STDC_HEADERS +#include /* For offsetof, used by PSEUDOVECSIZE. */ +#endif + #ifdef ALLOC_DEBUG #undef INLINE #endif -- 2.39.2