aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2018-12-19 12:45:15 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-01-09 10:14:56 +0100
commit78427a9264c911c91fc40e0fda78e61d57b44d68 (patch)
treeb62340bf2f0e16f5cbd0cb44346317d42c01e374
parentb3ae5e06ee625ab69cb8541548a7fda1ba807b07 (diff)
downloadlibssh-78427a9264c911c91fc40e0fda78e61d57b44d68.tar.gz
libssh-78427a9264c911c91fc40e0fda78e61d57b44d68.tar.xz
libssh-78427a9264c911c91fc40e0fda78e61d57b44d68.zip
priv: Provide PRIu32 for Visual Studio
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--include/libssh/priv.h4
1 files changed, 4 insertions, 0 deletions
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 <stdio.h>
# include <stdarg.h> /* va_copy define check */