aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2019-06-14 13:50:37 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-06-14 15:22:45 +0200
commitb775e316fa9c07c37bf0b7b5c7f959c9aa770f23 (patch)
tree2f29be02e1c2d54ce9eb6378d07e6c1c83550d38 /include
parentdc4d4cc8d4c90a6de06da3c07ec526c4d738db3d (diff)
downloadlibssh-b775e316fa9c07c37bf0b7b5c7f959c9aa770f23.tar.gz
libssh-b775e316fa9c07c37bf0b7b5c7f959c9aa770f23.tar.xz
libssh-b775e316fa9c07c37bf0b7b5c7f959c9aa770f23.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/priv.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index 7dcbcd49..2a1ddb44 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -82,6 +82,18 @@ char *strndup(const char *s, size_t n);
# define PRIu32 "u"
# 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
# include <stdio.h>
# include <stdarg.h> /* va_copy define check */