From: Dan Nicolaescu Date: Wed, 2 Jun 2010 02:40:59 +0000 (-0700) Subject: Remove unnecessary alloca.h includes. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~151 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c55d2abfc73923cedd0bcd11fc40d1739ae7a109;p=emacs.git 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. --- 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