diff options
| author | Eli Zaretskii | 2021-05-09 10:59:08 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2021-05-09 10:59:08 +0300 |
| commit | 4c3abb3dd105e075bf1cf55e3fe8b5ec2ac8e6cc (patch) | |
| tree | c531859e29220e5976f5127fb712fbcec21ae917 /src/w32proc.c | |
| parent | 127f1f330b67228217fdcc0a552d37a33dc67bb9 (diff) | |
| download | emacs-4c3abb3dd105e075bf1cf55e3fe8b5ec2ac8e6cc.tar.gz emacs-4c3abb3dd105e075bf1cf55e3fe8b5ec2ac8e6cc.zip | |
Fix compilation errors with latest w32 API headers
* src/w32common.h: Rename OS_* to OS_SUBTYPE__*, as w32 API
headers started defining OS_NT, which breaks the use of the
enumeration. All users changed. (Bug#48303)
Diffstat (limited to 'src/w32proc.c')
| -rw-r--r-- | src/w32proc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/w32proc.c b/src/w32proc.c index b436eaff2c3..1233ea7e54a 100644 --- a/src/w32proc.c +++ b/src/w32proc.c | |||
| @@ -623,7 +623,7 @@ init_timers (void) | |||
| 623 | need to probe for its availability dynamically, and call it | 623 | need to probe for its availability dynamically, and call it |
| 624 | through a pointer. */ | 624 | through a pointer. */ |
| 625 | s_pfn_Get_Thread_Times = NULL; /* in case dumped Emacs comes with a value */ | 625 | s_pfn_Get_Thread_Times = NULL; /* in case dumped Emacs comes with a value */ |
| 626 | if (os_subtype != OS_9X) | 626 | if (os_subtype != OS_SUBTYPE_9X) |
| 627 | s_pfn_Get_Thread_Times = (GetThreadTimes_Proc) | 627 | s_pfn_Get_Thread_Times = (GetThreadTimes_Proc) |
| 628 | get_proc_addr (GetModuleHandle ("kernel32.dll"), "GetThreadTimes"); | 628 | get_proc_addr (GetModuleHandle ("kernel32.dll"), "GetThreadTimes"); |
| 629 | 629 | ||
| @@ -2653,7 +2653,7 @@ find_child_console (HWND hwnd, LPARAM arg) | |||
| 2653 | 2653 | ||
| 2654 | GetClassName (hwnd, window_class, sizeof (window_class)); | 2654 | GetClassName (hwnd, window_class, sizeof (window_class)); |
| 2655 | if (strcmp (window_class, | 2655 | if (strcmp (window_class, |
| 2656 | (os_subtype == OS_9X) | 2656 | (os_subtype == OS_SUBTYPE_9X) |
| 2657 | ? "tty" | 2657 | ? "tty" |
| 2658 | : "ConsoleWindowClass") == 0) | 2658 | : "ConsoleWindowClass") == 0) |
| 2659 | { | 2659 | { |
| @@ -2877,7 +2877,7 @@ sys_kill (pid_t pid, int sig) | |||
| 2877 | if (NILP (Vw32_start_process_share_console) && cp && cp->hwnd) | 2877 | if (NILP (Vw32_start_process_share_console) && cp && cp->hwnd) |
| 2878 | { | 2878 | { |
| 2879 | #if 1 | 2879 | #if 1 |
| 2880 | if (os_subtype == OS_9X) | 2880 | if (os_subtype == OS_SUBTYPE_9X) |
| 2881 | { | 2881 | { |
| 2882 | /* | 2882 | /* |
| 2883 | Another possibility is to try terminating the VDM out-right by | 2883 | Another possibility is to try terminating the VDM out-right by |
| @@ -3792,7 +3792,7 @@ w32_compare_strings (const char *s1, const char *s2, char *locname, | |||
| 3792 | 3792 | ||
| 3793 | if (!g_b_init_compare_string_w) | 3793 | if (!g_b_init_compare_string_w) |
| 3794 | { | 3794 | { |
| 3795 | if (os_subtype == OS_9X) | 3795 | if (os_subtype == OS_SUBTYPE_9X) |
| 3796 | { | 3796 | { |
| 3797 | pCompareStringW = (CompareStringW_Proc) | 3797 | pCompareStringW = (CompareStringW_Proc) |
| 3798 | get_proc_addr (LoadLibrary ("Unicows.dll"), | 3798 | get_proc_addr (LoadLibrary ("Unicows.dll"), |