From 78427a9264c911c91fc40e0fda78e61d57b44d68 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Wed, 19 Dec 2018 12:45:15 +0100 Subject: [PATCH] priv: Provide PRIu32 for Visual Studio Signed-off-by: Jakub Jelen Reviewed-by: Andreas Schneider --- include/libssh/priv.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/libssh/priv.h b/include/libssh/priv.h index de7ffdf2..8f1cd84c 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -78,6 +78,10 @@ char *strndup(const char *s, size_t n); # endif /* __WORDSIZE */ # endif /* PRIu64 */ +# ifndef PRIu32 +# define PRIu32 "u" +# endif /* PRIu32 */ + # ifdef _MSC_VER # include # include /* va_copy define check */