tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit e26794ace9b12a87f67b20a151d2c71a1563e26a
parent acb54dee7bd247ae2d631de5a0d63d246574d479
Author: teor <teor@torproject.org>
Date:   Tue, 31 Jul 2018 11:20:44 +1000

Add TOR_PRIdSZ to torint.h

Diffstat:
Msrc/lib/cc/torint.h | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git 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