summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-03-16 15:04:34 +0000
committerBram Moolenaar <Bram@vim.org>2008-03-16 15:04:34 +0000
commitcb4cef2206b19e5d8737580eee29b44f45cb7de1 (patch)
treeb1b913a81d81e668f2c33ba5fde0de5255cdae6a /src/vim.h
parent0fde290e55feb8f3505c790c8ce9b5302893dfae (diff)
downloadvim-git-cb4cef2206b19e5d8737580eee29b44f45cb7de1.tar.gz
updated for version 7.1-283v7.1.283
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/vim.h b/src/vim.h
index 6c2cde5b0..d93bec154 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -355,16 +355,19 @@ typedef unsigned int int_u;
* On Win64 longs are 32 bit and pointers 64 bit.
* For printf() and scanf() we need to take care of long_u specifically. */
#ifdef _WIN64
-typedef unsigned __int64 long_u;
-typedef __int64 long_i;
-# define SCANF_HEX_LONG_U "%Ix"
-# define PRINTF_HEX_LONG_U "0x%Ix"
+typedef unsigned __int64 long_u;
+typedef __int64 long_i;
+# define SCANF_HEX_LONG_U "%Ix"
+# define SCANF_DECIMAL_LONG_U "%Iu"
+# define PRINTF_HEX_LONG_U "0x%Ix"
#else
-typedef unsigned long long_u;
-typedef long long_i;
-# define SCANF_HEX_LONG_U "%lx"
-# define PRINTF_HEX_LONG_U "0x%lx"
+typedef unsigned long long_u;
+typedef long long_i;
+# define SCANF_HEX_LONG_U "%lx"
+# define SCANF_DECIMAL_LONG_U "%lu"
+# define PRINTF_HEX_LONG_U "0x%lx"
#endif
+#define PRINTF_DECIMAL_LONG_U SCANF_DECIMAL_LONG_U
/*
* The characters and attributes cached for the screen.