1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-27 13:21:11 +03:00

priv.h: Add macro definitions for PRIx32 and PRIx64

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Anderson Toshiyuki Sasaki
2019-06-14 13:50:37 +02:00
committed by Andreas Schneider
parent dc4d4cc8d4
commit b775e316fa

View File

@@ -82,6 +82,18 @@ char *strndup(const char *s, size_t n);
# define PRIu32 "u" # define PRIu32 "u"
# endif /* PRIu32 */ # endif /* PRIu32 */
# ifndef PRIx64
# if __WORDSIZE == 64
# define PRIx64 "lx"
# else
# define PRIx64 "llx"
# endif /* __WORDSIZE */
# endif /* PRIx64 */
# ifndef PRIx32
# define PRIx32 "x"
# endif /* PRIx32 */
# ifdef _MSC_VER # ifdef _MSC_VER
# include <stdio.h> # include <stdio.h>
# include <stdarg.h> /* va_copy define check */ # include <stdarg.h> /* va_copy define check */