Hi, 2020/5/10 Sun 6:38:41 UTC+9 John Marriott wrote: > > > On 10-May-2020 07:11, Bram Moolenaar wrote: > > Any specified reason you exclude clang here? I thought it was using the > > same runtime library. > > > > > Ah no. It looks like I pinched too much from stackoverflow. Whoops sorry > :-) >
I don't think we need to use #if here. Attached patch should be enough. Additionally, at least Windows 7's msvcrt.dll doesn't support the "z" specifier. Regards, Ken Takata -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/ac8d33b1-f1cc-4a98-a68e-c212db0a3977%40googlegroups.com.
diff --git a/src/vim.h b/src/vim.h --- a/src/vim.h +++ b/src/vim.h @@ -341,9 +341,9 @@ typedef unsigned int int_u; #ifdef _WIN64 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" +# define SCANF_HEX_LONG_U "%llx" +# define SCANF_DECIMAL_LONG_U "%llu" +# define PRINTF_HEX_LONG_U "0x%llx" #else // 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,
