aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFabrice Popineau2012-11-30 17:14:22 +0200
committerEli Zaretskii2012-11-30 17:14:22 +0200
commitc7b36b9550a66a033d42152741bf7e3f4927cb39 (patch)
treeb93dd8c7fc47ba31fd7f72facbcc6996336041f4 /src
parent6247eff516ed92bf207867a32980cbba02854fa1 (diff)
downloademacs-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/ChangeLog14
-rw-r--r--src/w32.c8
-rw-r--r--src/w32common.h2
-rw-r--r--src/w32fns.c5
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 @@
12012-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
12012-11-27 Glenn Morris <rgm@gnu.org> 152012-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.
diff --git a/src/w32.c b/src/w32.c
index 1c3331516d4..f5630993d43 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -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
35extern SYSTEM_INFO sysinfo_cache; 35extern SYSTEM_INFO sysinfo_cache;
36extern OSVERSIONINFO osinfo_cache; 36extern OSVERSIONINFO osinfo_cache;
37extern unsigned long syspage_mask; 37extern DWORD_PTR syspage_mask;
38 38
39extern int w32_major_version; 39extern int w32_major_version;
40extern int w32_minor_version; 40extern 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);
80void globals_of_w32fns (void); 80void globals_of_w32fns (void);
81 81
82extern void free_frame_menubar (struct frame *); 82extern void free_frame_menubar (struct frame *);
83extern double atof (const char *);
84extern int w32_console_toggle_lock_key (int, Lisp_Object); 83extern int w32_console_toggle_lock_key (int, Lisp_Object);
85extern void w32_menu_display_help (HWND, HMENU, UINT, UINT); 84extern void w32_menu_display_help (HWND, HMENU, UINT, UINT);
86extern void w32_free_menu_strings (HWND); 85extern 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. */
222OSVERSIONINFO osinfo_cache; 221OSVERSIONINFO osinfo_cache;
223 222
224unsigned long syspage_mask = 0; 223DWORD_PTR syspage_mask = 0;
225 224
226/* The major and minor versions of NT. */ 225/* The major and minor versions of NT. */
227int w32_major_version; 226int 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. */
6022static UINT CALLBACK 6021static UINT_PTR CALLBACK
6023file_dialog_callback (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) 6022file_dialog_callback (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
6024{ 6023{
6025 if (msg == WM_NOTIFY) 6024 if (msg == WM_NOTIFY)