diff options
| author | Fabrice Popineau | 2012-11-30 17:14:22 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-11-30 17:14:22 +0200 |
| commit | c7b36b9550a66a033d42152741bf7e3f4927cb39 (patch) | |
| tree | b93dd8c7fc47ba31fd7f72facbcc6996336041f4 /src | |
| parent | 6247eff516ed92bf207867a32980cbba02854fa1 (diff) | |
| download | emacs-c7b36b9550a66a033d42152741bf7e3f4927cb39.tar.gz emacs-c7b36b9550a66a033d42152741bf7e3f4927cb39.zip | |
Fix compilation problems with 64-bit MSVC compiler.
src/w32fns.c: Remove prototype of atof.
(syspage_mask): Declared DWORD_PTR, for compatibility with 64-bit
builds.
(file_dialog_callback): Declared UINT_PTR.
src/w32common.h (syspage_mask): Declare DWORD_PTR, for compatibility
with 64-bit builds.
src/w32.c (FILE_DEVICE_FILE_SYSTEM, METHOD_BUFFERED)
(FILE_ANY_ACCESS, CTL_CODE) [_MSC_VER]: Define only if not already
defined.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 14 | ||||
| -rw-r--r-- | src/w32.c | 8 | ||||
| -rw-r--r-- | src/w32common.h | 2 | ||||
| -rw-r--r-- | src/w32fns.c | 5 |
4 files changed, 25 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a1d09e683c3..48776fcbdc7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,17 @@ | |||
| 1 | 2012-11-30 Fabrice Popineau <fabrice.popineau@gmail.com> | ||
| 2 | |||
| 3 | * w32fns.c: Remove prototype of atof. | ||
| 4 | (syspage_mask): Declared DWORD_PTR, for compatibility with 64-bit | ||
| 5 | builds. | ||
| 6 | (file_dialog_callback): Declared UINT_PTR. | ||
| 7 | |||
| 8 | * w32common.h (syspage_mask): Declare DWORD_PTR, for compatibility | ||
| 9 | with 64-bit builds. | ||
| 10 | |||
| 11 | * w32.c (FILE_DEVICE_FILE_SYSTEM, METHOD_BUFFERED) | ||
| 12 | (FILE_ANY_ACCESS, CTL_CODE) [_MSC_VER]: Define only if not already | ||
| 13 | defined. | ||
| 14 | |||
| 1 | 2012-11-27 Glenn Morris <rgm@gnu.org> | 15 | 2012-11-27 Glenn Morris <rgm@gnu.org> |
| 2 | 16 | ||
| 3 | * data.c (Fboundp, Fsymbol_value): Doc fix re lexical-binding. | 17 | * data.c (Fboundp, Fsymbol_value): Doc fix re lexical-binding. |
| @@ -150,10 +150,18 @@ typedef struct _REPARSE_DATA_BUFFER { | |||
| 150 | } DUMMYUNIONNAME; | 150 | } DUMMYUNIONNAME; |
| 151 | } REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER; | 151 | } REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER; |
| 152 | 152 | ||
| 153 | #ifndef FILE_DEVICE_FILE_SYSTEM | ||
| 153 | #define FILE_DEVICE_FILE_SYSTEM 9 | 154 | #define FILE_DEVICE_FILE_SYSTEM 9 |
| 155 | #endif | ||
| 156 | #ifndef METHOD_BUFFERED | ||
| 154 | #define METHOD_BUFFERED 0 | 157 | #define METHOD_BUFFERED 0 |
| 158 | #endif | ||
| 159 | #ifndef FILE_ANY_ACCESS | ||
| 155 | #define FILE_ANY_ACCESS 0x00000000 | 160 | #define FILE_ANY_ACCESS 0x00000000 |
| 161 | #endif | ||
| 162 | #ifndef CTL_CODE | ||
| 156 | #define CTL_CODE(t,f,m,a) (((t)<<16)|((a)<<14)|((f)<<2)|(m)) | 163 | #define CTL_CODE(t,f,m,a) (((t)<<16)|((a)<<14)|((f)<<2)|(m)) |
| 164 | #endif | ||
| 157 | #define FSCTL_GET_REPARSE_POINT \ | 165 | #define FSCTL_GET_REPARSE_POINT \ |
| 158 | CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 42, METHOD_BUFFERED, FILE_ANY_ACCESS) | 166 | CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 42, METHOD_BUFFERED, FILE_ANY_ACCESS) |
| 159 | #endif | 167 | #endif |
diff --git a/src/w32common.h b/src/w32common.h index 50724e5553c..5e9b61824ae 100644 --- a/src/w32common.h +++ b/src/w32common.h | |||
| @@ -34,7 +34,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | |||
| 34 | 34 | ||
| 35 | extern SYSTEM_INFO sysinfo_cache; | 35 | extern SYSTEM_INFO sysinfo_cache; |
| 36 | extern OSVERSIONINFO osinfo_cache; | 36 | extern OSVERSIONINFO osinfo_cache; |
| 37 | extern unsigned long syspage_mask; | 37 | extern DWORD_PTR syspage_mask; |
| 38 | 38 | ||
| 39 | extern int w32_major_version; | 39 | extern int w32_major_version; |
| 40 | extern int w32_minor_version; | 40 | extern int w32_minor_version; |
diff --git a/src/w32fns.c b/src/w32fns.c index d598d66b3a5..8e1ecc1cb00 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -80,7 +80,6 @@ void syms_of_w32fns (void); | |||
| 80 | void globals_of_w32fns (void); | 80 | void globals_of_w32fns (void); |
| 81 | 81 | ||
| 82 | extern void free_frame_menubar (struct frame *); | 82 | extern void free_frame_menubar (struct frame *); |
| 83 | extern double atof (const char *); | ||
| 84 | extern int w32_console_toggle_lock_key (int, Lisp_Object); | 83 | extern int w32_console_toggle_lock_key (int, Lisp_Object); |
| 85 | extern void w32_menu_display_help (HWND, HMENU, UINT, UINT); | 84 | extern void w32_menu_display_help (HWND, HMENU, UINT, UINT); |
| 86 | extern void w32_free_menu_strings (HWND); | 85 | extern void w32_free_menu_strings (HWND); |
| @@ -221,7 +220,7 @@ SYSTEM_INFO sysinfo_cache; | |||
| 221 | /* This gives us version, build, and platform identification. */ | 220 | /* This gives us version, build, and platform identification. */ |
| 222 | OSVERSIONINFO osinfo_cache; | 221 | OSVERSIONINFO osinfo_cache; |
| 223 | 222 | ||
| 224 | unsigned long syspage_mask = 0; | 223 | DWORD_PTR syspage_mask = 0; |
| 225 | 224 | ||
| 226 | /* The major and minor versions of NT. */ | 225 | /* The major and minor versions of NT. */ |
| 227 | int w32_major_version; | 226 | int w32_major_version; |
| @@ -6019,7 +6018,7 @@ typedef char guichar_t; | |||
| 6019 | read-only when "Directories" is selected in the filter. This | 6018 | read-only when "Directories" is selected in the filter. This |
| 6020 | allows us to work around the fact that the standard Open File | 6019 | allows us to work around the fact that the standard Open File |
| 6021 | dialog does not support directories. */ | 6020 | dialog does not support directories. */ |
| 6022 | static UINT CALLBACK | 6021 | static UINT_PTR CALLBACK |
| 6023 | file_dialog_callback (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) | 6022 | file_dialog_callback (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) |
| 6024 | { | 6023 | { |
| 6025 | if (msg == WM_NOTIFY) | 6024 | if (msg == WM_NOTIFY) |