]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add TOR_PRIdSZ to torint.h
authorteor <teor@torproject.org>
Tue, 31 Jul 2018 01:20:44 +0000 (11:20 +1000)
committerteor <teor@torproject.org>
Tue, 31 Jul 2018 01:21:28 +0000 (11:21 +1000)
src/lib/cc/torint.h

index b97fc8d975364ed110646529f9551b654bb3680f..5097724726d9c29974e728e9bca4506e11f0e7c4 100644 (file)
@@ -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