New wrapper macro for printf("%zu"), for old VS compat.
A user reports that Visual Studio 2013 and earlier have printf implementations in their C library that don't support the 'z' modifier to indicate that an integer argument is size_t. The 'I' modifier apparently works in place of it. To avoid littering ifdefs everywhere, I've invented my own inttypes.h style macros to wrap size_t formatting directives, which are defined to %zu and %zx normally, or %Iu and %Ix in old-VS mode. Those are in defs.h, and they're used everywhere that a %z might otherwise get into the Windows build.
Showing
- defs.h 7 additions, 0 deletionsdefs.h
- logging.c 4 additions, 3 deletionslogging.c
- pageant.c 6 additions, 5 deletionspageant.c
- sshprng.c 4 additions, 4 deletionssshprng.c
- sshpubk.c 2 additions, 2 deletionssshpubk.c
- sshrsa.c 2 additions, 2 deletionssshrsa.c
- testcrypt.c 1 addition, 1 deletiontestcrypt.c
- testsc.c 2 additions, 2 deletionstestsc.c
- windows/winpgnt.c 1 addition, 1 deletionwindows/winpgnt.c
Loading
Please register or sign in to comment