From: Andrew Innes Date: Tue, 22 Aug 2000 22:40:16 +0000 (+0000) Subject: Include keyboard.h before frame.h. X-Git-Tag: emacs-pretest-21.0.90~2039 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e36ec798cc3811bf267219ebddd411e6c3ddb309;p=emacs.git Include keyboard.h before frame.h. (NULL) [WINDOWSNT]: Define NULL if not defined. [USE_CRT_DLL]: Remove unnecessary extern, which screws up dllimport attributes. --- diff --git a/src/sysdep.c b/src/sysdep.c index dc70bb8fb7c..a9b426eddba 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -54,7 +54,9 @@ Lisp_Object Vx_bitmap_file_path; #define read sys_read #define write sys_write #include -extern int errno; +#ifndef NULL +#define NULL 0 +#endif #endif /* not WINDOWSNT */ /* Does anyone other than VMS need this? */ @@ -106,9 +108,11 @@ extern unsigned start __asm__ ("start"); #endif #endif +#ifndef USE_CRT_DLL #ifndef errno extern int errno; #endif +#endif #ifdef VMS #include @@ -176,6 +180,7 @@ extern int errno; extern int quit_char; +#include "keyboard.h" #include "frame.h" #include "window.h" #include "termhooks.h"