From e36ec798cc3811bf267219ebddd411e6c3ddb309 Mon Sep 17 00:00:00 2001 From: Andrew Innes Date: Tue, 22 Aug 2000 22:40:16 +0000 Subject: [PATCH] Include keyboard.h before frame.h. (NULL) [WINDOWSNT]: Define NULL if not defined. [USE_CRT_DLL]: Remove unnecessary extern, which screws up dllimport attributes. --- src/sysdep.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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" -- 2.39.2