diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-08-20 10:49:27 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-08-20 10:49:27 +0200 |
commit | 3eb21053d073382f73f0fe6131b37f08f5f8f129 (patch) | |
tree | fa7070063b4cd7414074e4e95d5a3207f9735a83 | |
parent | 92db6f8c6d4aa8a33c973ef68c0f2d145f065c0c (diff) | |
download | libssh-3eb21053d073382f73f0fe6131b37f08f5f8f129.tar.gz libssh-3eb21053d073382f73f0fe6131b37f08f5f8f129.tar.xz libssh-3eb21053d073382f73f0fe6131b37f08f5f8f129.zip |
Add a portable define to print size_t.
-rw-r--r-- | include/libssh/priv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 6c5a688..1ad6b41 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -32,8 +32,11 @@ #ifdef _MSC_VER #define snprintf _snprintf +/** Imitate define of inttypes.h */ +#define PRIdS "Id" #else #include <unistd.h> +#define PRIdS "zd" #endif #include "config.h" |