From: teor Date: Tue, 31 Jul 2018 01:20:44 +0000 (+1000) Subject: Add TOR_PRIdSZ to torint.h X-Git-Tag: tor-0.3.5.1-alpha~172^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e26794ace9b12a87f67b20a151d2c71a1563e26a;p=thirdparty%2Ftor.git Add TOR_PRIdSZ to torint.h --- diff --git a/src/lib/cc/torint.h b/src/lib/cc/torint.h index b97fc8d975..5097724726 100644 --- a/src/lib/cc/torint.h +++ b/src/lib/cc/torint.h @@ -100,6 +100,16 @@ typedef int32_t ssize_t; # define TOR_PRIuSZ "zu" #endif +#ifdef _WIN32 +# ifdef _WIN64 +# define TOR_PRIdSZ PRId64 +# else +# define TOR_PRIdSZ PRId32 +# endif +#else +# define TOR_PRIdSZ "zd" +#endif + #ifndef SSIZE_MAX #if (SIZEOF_SIZE_T == 4) #define SSIZE_MAX INT32_MAX