diff options
| author | Andrew Innes | 2000-08-22 22:40:16 +0000 |
|---|---|---|
| committer | Andrew Innes | 2000-08-22 22:40:16 +0000 |
| commit | e36ec798cc3811bf267219ebddd411e6c3ddb309 (patch) | |
| tree | 687f3351cc56c6a1feab13c25eb1ada3bc7cb6bd /src/sysdep.c | |
| parent | 03695acef74e736c8d6538c56d39d535008fd72d (diff) | |
| download | emacs-e36ec798cc3811bf267219ebddd411e6c3ddb309.tar.gz emacs-e36ec798cc3811bf267219ebddd411e6c3ddb309.zip | |
Include keyboard.h before frame.h.
(NULL) [WINDOWSNT]: Define NULL if not defined.
[USE_CRT_DLL]: Remove unnecessary extern, which screws
up dllimport attributes.
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; | |||
| 54 | #define read sys_read | 54 | #define read sys_read |
| 55 | #define write sys_write | 55 | #define write sys_write |
| 56 | #include <windows.h> | 56 | #include <windows.h> |
| 57 | extern int errno; | 57 | #ifndef NULL |
| 58 | #define NULL 0 | ||
| 59 | #endif | ||
| 58 | #endif /* not WINDOWSNT */ | 60 | #endif /* not WINDOWSNT */ |
| 59 | 61 | ||
| 60 | /* Does anyone other than VMS need this? */ | 62 | /* Does anyone other than VMS need this? */ |
| @@ -106,9 +108,11 @@ extern unsigned start __asm__ ("start"); | |||
| 106 | #endif | 108 | #endif |
| 107 | #endif | 109 | #endif |
| 108 | 110 | ||
| 111 | #ifndef USE_CRT_DLL | ||
| 109 | #ifndef errno | 112 | #ifndef errno |
| 110 | extern int errno; | 113 | extern int errno; |
| 111 | #endif | 114 | #endif |
| 115 | #endif | ||
| 112 | 116 | ||
| 113 | #ifdef VMS | 117 | #ifdef VMS |
| 114 | #include <rms.h> | 118 | #include <rms.h> |
| @@ -176,6 +180,7 @@ extern int errno; | |||
| 176 | 180 | ||
| 177 | extern int quit_char; | 181 | extern int quit_char; |
| 178 | 182 | ||
| 183 | #include "keyboard.h" | ||
| 179 | #include "frame.h" | 184 | #include "frame.h" |
| 180 | #include "window.h" | 185 | #include "window.h" |
| 181 | #include "termhooks.h" | 186 | #include "termhooks.h" |