summaryrefslogtreecommitdiff
path: root/src/w32.c
diff options
context:
space:
mode:
authorFabrice Popineau <fabrice.popineau@gmail.com>2012-11-30 17:14:22 +0200
committerEli Zaretskii <eliz@gnu.org>2012-11-30 17:14:22 +0200
commitc7b36b9550a66a033d42152741bf7e3f4927cb39 (patch)
treeb93dd8c7fc47ba31fd7f72facbcc6996336041f4 /src/w32.c
parent6247eff516ed92bf207867a32980cbba02854fa1 (diff)
downloademacs-c7b36b9550a66a033d42152741bf7e3f4927cb39.tar.gz
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/w32.c')
-rw-r--r--src/w32.c8
1 files changed, 8 insertions, 0 deletions
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 {
} DUMMYUNIONNAME;
} REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER;
+#ifndef FILE_DEVICE_FILE_SYSTEM
#define FILE_DEVICE_FILE_SYSTEM 9
+#endif
+#ifndef METHOD_BUFFERED
#define METHOD_BUFFERED 0
+#endif
+#ifndef FILE_ANY_ACCESS
#define FILE_ANY_ACCESS 0x00000000
+#endif
+#ifndef CTL_CODE
#define CTL_CODE(t,f,m,a) (((t)<<16)|((a)<<14)|((f)<<2)|(m))
+#endif
#define FSCTL_GET_REPARSE_POINT \
CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 42, METHOD_BUFFERED, FILE_ANY_ACCESS)
#endif