From c55d2abfc73923cedd0bcd11fc40d1739ae7a109 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Tue, 1 Jun 2010 19:40:59 -0700 Subject: [PATCH] Remove unnecessary alloca.h includes. * src/keymap.c: Do not include alloca.h, config.h does that. * src/sysdep.c: Likewise. Do not define fwrite, not used. --- src/ChangeLog | 6 ++++++ src/keymap.c | 3 --- src/sysdep.c | 10 ---------- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index b656b0e7dc7..9135ce8cbbc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2010-06-02 Dan Nicolaescu + + Remove unnecessary alloca.h includes. + * keymap.c: Do not include alloca.h, config.h does that. + * sysdep.c: Likewise. Do not define fwrite, not used. + 2010-06-01 Stefan Monnier * sysdep.c (child_setup_tty): Move the non-canonical initialization to diff --git a/src/keymap.c b/src/keymap.c index 53b6795d623..c3a9d9e5cc0 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -22,9 +22,6 @@ along with GNU Emacs. If not, see . */ #include #include #include -#if HAVE_ALLOCA_H -# include -#endif #include "lisp.h" #include "commands.h" #include "buffer.h" diff --git a/src/sysdep.c b/src/sysdep.c index 46169b28e1f..ba2a7493d74 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -36,9 +36,6 @@ along with GNU Emacs. If not, see . */ #ifdef HAVE_UNISTD_H #include #endif -#ifdef HAVE_ALLOCA_H -#include -#endif /* HAVE_ALLOCA_H */ #include "lisp.h" /* Including stdlib.h isn't necessarily enough to get srandom @@ -61,13 +58,6 @@ along with GNU Emacs. If not, see . */ #endif #endif /* not WINDOWSNT */ -/* Does anyone other than VMS need this? */ -#ifndef fwrite -#define sys_fwrite fwrite -#else -#undef fwrite -#endif - #include #include #include -- 2.39.2