]> git.eshelyaron.com Git - emacs.git/commitdiff
Include keyboard.h before frame.h.
authorAndrew Innes <andrewi@gnu.org>
Tue, 22 Aug 2000 22:40:16 +0000 (22:40 +0000)
committerAndrew Innes <andrewi@gnu.org>
Tue, 22 Aug 2000 22:40:16 +0000 (22:40 +0000)
(NULL) [WINDOWSNT]: Define NULL if not defined.
[USE_CRT_DLL]: Remove unnecessary extern, which screws
up dllimport attributes.

src/sysdep.c

index dc70bb8fb7cb4257517186c4a403d6b80606f1ae..a9b426eddbaf7d35a52d49e5b7933e611c8afbea 100644 (file)
@@ -54,7 +54,9 @@ Lisp_Object Vx_bitmap_file_path;
 #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 @@ extern unsigned start __asm__ ("start");
 #endif
 #endif
 
+#ifndef USE_CRT_DLL
 #ifndef errno
 extern int errno;
 #endif
+#endif
 
 #ifdef VMS
 #include <rms.h>
@@ -176,6 +180,7 @@ extern int errno;
 
 extern int quit_char;
 
+#include "keyboard.h"
 #include "frame.h"
 #include "window.h"
 #include "termhooks.h"