diff options
| author | Eli Zaretskii | 2012-11-19 19:34:21 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-11-19 19:34:21 +0200 |
| commit | 88c4a13c3b573e0fa844c88ab89765ef308c267e (patch) | |
| tree | 51ebae41ad5eeeccf1fb49dd2e1d556068cfb87a | |
| parent | bc715d67b3997988e2a48286410d45404e49342c (diff) | |
| download | emacs-88c4a13c3b573e0fa844c88ab89765ef308c267e.tar.gz emacs-88c4a13c3b573e0fa844c88ab89765ef308c267e.zip | |
More fixes for bug #12878 with MS-Windows MSVC build.
src/xdisp.c (start_hourglass) [HAVE_NTGUI]: Don't mix declaration of
w32_note_current_window with code. (Backport from trunk.)
src/w32.c (FILE_DEVICE_FILE_SYSTEM, METHOD_BUFFERED)
(FILE_ANY_ACCESS, CTL_CODE, FSCTL_GET_REPARSE_POINT) [_MSC_VER]:
Define for the MSVC compiler.
src/w32term.h (EnumSystemLocalesW) [_MSC_VER]: Add a missing
semi-colon.
nt/inc/stdint.h (PTRDIFF_MIN) [!__GNUC__]: Define for MSVC.
| -rw-r--r-- | nt/ChangeLog | 4 | ||||
| -rw-r--r-- | nt/inc/stdint.h | 1 | ||||
| -rw-r--r-- | src/ChangeLog | 12 | ||||
| -rw-r--r-- | src/w32.c | 13 | ||||
| -rw-r--r-- | src/w32term.h | 2 | ||||
| -rw-r--r-- | src/xdisp.c | 6 |
6 files changed, 32 insertions, 6 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index d34d23df4d5..cb63a90bb41 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-11-19 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * inc/stdint.h (PTRDIFF_MIN) [!__GNUC__]: Define for MSVC. | ||
| 4 | |||
| 1 | 2012-11-01 Eli Zaretskii <eliz@gnu.org> | 5 | 2012-11-01 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * inc/unistd.h (setpgid, getpgrp): Provide prototypes. (Bug#12776) | 7 | * inc/unistd.h (setpgid, getpgrp): Provide prototypes. (Bug#12776) |
diff --git a/nt/inc/stdint.h b/nt/inc/stdint.h index 5c53fa18b55..edb0469eb87 100644 --- a/nt/inc/stdint.h +++ b/nt/inc/stdint.h | |||
| @@ -60,6 +60,7 @@ typedef unsigned int uint32_t; | |||
| 60 | #endif | 60 | #endif |
| 61 | 61 | ||
| 62 | #define PTRDIFF_MAX INTPTR_MAX | 62 | #define PTRDIFF_MAX INTPTR_MAX |
| 63 | #define PTRDIFF_MIN INTPTR_MIN | ||
| 63 | 64 | ||
| 64 | #endif /* !__GNUC__ */ | 65 | #endif /* !__GNUC__ */ |
| 65 | 66 | ||
diff --git a/src/ChangeLog b/src/ChangeLog index c4f1ee60d84..da5a9607903 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2012-11-19 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (start_hourglass) [HAVE_NTGUI]: Don't mix declaration of | ||
| 4 | w32_note_current_window with code. (Backport from trunk.) | ||
| 5 | |||
| 6 | * w32.c (FILE_DEVICE_FILE_SYSTEM, METHOD_BUFFERED) | ||
| 7 | (FILE_ANY_ACCESS, CTL_CODE, FSCTL_GET_REPARSE_POINT) [_MSC_VER]: | ||
| 8 | Define for the MSVC compiler. | ||
| 9 | |||
| 10 | * w32term.h (EnumSystemLocalesW) [_MSC_VER]: Add a missing | ||
| 11 | semi-colon. | ||
| 12 | |||
| 1 | 2012-11-18 Eli Zaretskii <eliz@gnu.org> | 13 | 2012-11-18 Eli Zaretskii <eliz@gnu.org> |
| 2 | 14 | ||
| 3 | * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory) | 15 | * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory) |
| @@ -119,9 +119,10 @@ typedef struct _PROCESS_MEMORY_COUNTERS_EX { | |||
| 119 | #include <aclapi.h> | 119 | #include <aclapi.h> |
| 120 | 120 | ||
| 121 | #ifdef _MSC_VER | 121 | #ifdef _MSC_VER |
| 122 | /* MSVC doesn't provide the definition of REPARSE_DATA_BUFFER, except | 122 | /* MSVC doesn't provide the definition of REPARSE_DATA_BUFFER and the |
| 123 | on ntifs.h, which cannot be included because it triggers conflicts | 123 | associated macros, except on ntifs.h, which cannot be included |
| 124 | with other Windows API headers. So we define it here by hand. */ | 124 | because it triggers conflicts with other Windows API headers. So |
| 125 | we define it here by hand. */ | ||
| 125 | 126 | ||
| 126 | typedef struct _REPARSE_DATA_BUFFER { | 127 | typedef struct _REPARSE_DATA_BUFFER { |
| 127 | ULONG ReparseTag; | 128 | ULONG ReparseTag; |
| @@ -149,6 +150,12 @@ typedef struct _REPARSE_DATA_BUFFER { | |||
| 149 | } DUMMYUNIONNAME; | 150 | } DUMMYUNIONNAME; |
| 150 | } REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER; | 151 | } REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER; |
| 151 | 152 | ||
| 153 | #define FILE_DEVICE_FILE_SYSTEM 9 | ||
| 154 | #define METHOD_BUFFERED 0 | ||
| 155 | #define FILE_ANY_ACCESS 0x00000000 | ||
| 156 | #define CTL_CODE(t,f,m,a) (((t)<<16)|((a)<<14)|((f)<<2)|(m)) | ||
| 157 | #define FSCTL_GET_REPARSE_POINT \ | ||
| 158 | CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 42, METHOD_BUFFERED, FILE_ANY_ACCESS) | ||
| 152 | #endif | 159 | #endif |
| 153 | 160 | ||
| 154 | /* TCP connection support. */ | 161 | /* TCP connection support. */ |
diff --git a/src/w32term.h b/src/w32term.h index 6e30d374c82..9b5a4a0189a 100644 --- a/src/w32term.h +++ b/src/w32term.h | |||
| @@ -758,7 +758,7 @@ extern int w32_system_caret_y; | |||
| 758 | typedef BOOL (CALLBACK *LOCALE_ENUMPROCA)(LPSTR); | 758 | typedef BOOL (CALLBACK *LOCALE_ENUMPROCA)(LPSTR); |
| 759 | typedef BOOL (CALLBACK *LOCALE_ENUMPROCW)(LPWSTR); | 759 | typedef BOOL (CALLBACK *LOCALE_ENUMPROCW)(LPWSTR); |
| 760 | BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD); | 760 | BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD); |
| 761 | BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD) | 761 | BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD); |
| 762 | #ifdef UNICODE | 762 | #ifdef UNICODE |
| 763 | #define EnumSystemLocales EnumSystemLocalesW | 763 | #define EnumSystemLocales EnumSystemLocalesW |
| 764 | #else | 764 | #else |
diff --git a/src/xdisp.c b/src/xdisp.c index 290c3a07fe9..85fe9a00f60 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -29433,8 +29433,10 @@ start_hourglass (void) | |||
| 29433 | delay = make_emacs_time (DEFAULT_HOURGLASS_DELAY, 0); | 29433 | delay = make_emacs_time (DEFAULT_HOURGLASS_DELAY, 0); |
| 29434 | 29434 | ||
| 29435 | #ifdef HAVE_NTGUI | 29435 | #ifdef HAVE_NTGUI |
| 29436 | extern void w32_note_current_window (void); | 29436 | { |
| 29437 | w32_note_current_window (); | 29437 | extern void w32_note_current_window (void); |
| 29438 | w32_note_current_window (); | ||
| 29439 | } | ||
| 29438 | #endif /* HAVE_NTGUI */ | 29440 | #endif /* HAVE_NTGUI */ |
| 29439 | 29441 | ||
| 29440 | hourglass_atimer = start_atimer (ATIMER_RELATIVE, delay, | 29442 | hourglass_atimer = start_atimer (ATIMER_RELATIVE, delay, |