changeset 31101:1a4f15527382

Include keyboard.h before frame.h. (NULL) [WINDOWSNT]: Define NULL if not defined. [USE_CRT_DLL]: Remove unnecessary extern, which screws up dllimport attributes.
author Andrew Innes <andrewi@gnu.org>
date Tue, 22 Aug 2000 22:40:16 +0000
parents 92f108b8b281
children 6a0caa788013
files src/sysdep.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Tue Aug 22 22:38:05 2000 +0000
+++ b/src/sysdep.c	Tue Aug 22 22:40:16 2000 +0000
@@ -54,7 +54,9 @@
 #define read sys_read
 #define write sys_write
 #include <windows.h>
-extern int errno;
+#ifndef NULL
+#define NULL 0
+#endif
 #endif /* not WINDOWSNT */
 
 /* Does anyone other than VMS need this? */
@@ -106,9 +108,11 @@
 #endif
 #endif
 
+#ifndef USE_CRT_DLL
 #ifndef errno
 extern int errno;
 #endif
+#endif
 
 #ifdef VMS
 #include <rms.h>
@@ -176,6 +180,7 @@
 
 extern int quit_char;
 
+#include "keyboard.h"
 #include "frame.h"
 #include "window.h"
 #include "termhooks.h"