diff options
| author | Jason Rumney | 2000-02-27 21:31:07 +0000 |
|---|---|---|
| committer | Jason Rumney | 2000-02-27 21:31:07 +0000 |
| commit | 65fb143ce7477e3b9e64e2a109a2225703b00544 (patch) | |
| tree | 42dcc718b8d7b0741c4879ed4260fd566770cac3 /src | |
| parent | 0a6b80d5c14632e99c2f2214ad8300e3581495ef (diff) | |
| download | emacs-65fb143ce7477e3b9e64e2a109a2225703b00544.tar.gz emacs-65fb143ce7477e3b9e64e2a109a2225703b00544.zip | |
Only disable window system features for dispextern.h
(initialize_w32_display): Build a display info for the console.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32console.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/w32console.c b/src/w32console.c index f067501f71b..ac33abd6501 100644 --- a/src/w32console.c +++ b/src/w32console.c | |||
| @@ -30,15 +30,14 @@ Boston, MA 02111-1307, USA. | |||
| 30 | #include <windows.h> | 30 | #include <windows.h> |
| 31 | #include <string.h> | 31 | #include <string.h> |
| 32 | 32 | ||
| 33 | /* Disable features in headers that require a Window System for | ||
| 34 | console mode. */ | ||
| 35 | #undef HAVE_WINDOW_SYSTEM | ||
| 36 | #include "lisp.h" | 33 | #include "lisp.h" |
| 37 | #include "charset.h" | 34 | #include "charset.h" |
| 38 | #include "coding.h" | 35 | #include "coding.h" |
| 39 | #include "frame.h" | ||
| 40 | #include "disptab.h" | 36 | #include "disptab.h" |
| 41 | #include "termhooks.h" | 37 | #include "termhooks.h" |
| 38 | /* Disable features in dispextern.h that require a Window System. */ | ||
| 39 | #undef HAVE_WINDOW_SYSTEM | ||
| 40 | #include "frame.h" | ||
| 42 | #include "w32inevt.h" | 41 | #include "w32inevt.h" |
| 43 | #include "dispextern.h" | 42 | #include "dispextern.h" |
| 44 | 43 | ||
| @@ -724,6 +723,11 @@ initialize_w32_display (void) | |||
| 724 | SET_FRAME_WIDTH (SELECTED_FRAME (), 1 + info.srWindow.Right - | 723 | SET_FRAME_WIDTH (SELECTED_FRAME (), 1 + info.srWindow.Right - |
| 725 | info.srWindow.Left); | 724 | info.srWindow.Left); |
| 726 | } | 725 | } |
| 726 | |||
| 727 | /* Setup w32_display_info structure for this frame. */ | ||
| 728 | |||
| 729 | w32_initialize_display_info (build_string ("Console")); | ||
| 730 | |||
| 727 | } | 731 | } |
| 728 | 732 | ||
| 729 | DEFUN ("set-screen-color", Fset_screen_color, Sset_screen_color, 2, 2, 0, | 733 | DEFUN ("set-screen-color", Fset_screen_color, Sset_screen_color, 2, 2, 0, |