0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 8.2.0727: MS-Windows: new gcc compiler does not support scanf format

Problem:    MS-Windows: new gcc compiler does not support scanf format.
Solution:   Use "%ll" instead of "%I". (Ken Takata)
This commit is contained in:
Bram Moolenaar
2020-05-10 13:42:43 +02:00
parent 3b6a6eb7b4
commit d695ba732d
2 changed files with 5 additions and 3 deletions

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
727,
/**/ /**/
726, 726,
/**/ /**/

View File

@@ -340,9 +340,9 @@ typedef unsigned int int_u;
#ifdef _WIN64 #ifdef _WIN64
typedef unsigned __int64 long_u; typedef unsigned __int64 long_u;
typedef __int64 long_i; typedef __int64 long_i;
# define SCANF_HEX_LONG_U "%Ix" # define SCANF_HEX_LONG_U "%llx"
# define SCANF_DECIMAL_LONG_U "%Iu" # define SCANF_DECIMAL_LONG_U "%llu"
# define PRINTF_HEX_LONG_U "0x%Ix" # define PRINTF_HEX_LONG_U "0x%llx"
#else #else
// Microsoft-specific. The __w64 keyword should be specified on any typedefs // Microsoft-specific. The __w64 keyword should be specified on any typedefs
// that change size between 32-bit and 64-bit platforms. For any such type, // that change size between 32-bit and 64-bit platforms. For any such type,