aboutsummaryrefslogtreecommitdiff
path: root/src/lib/cc
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2018-07-31 11:20:44 +1000
committerteor <teor@torproject.org>2018-07-31 11:21:28 +1000
commite26794ace9b12a87f67b20a151d2c71a1563e26a (patch)
treeddc6e5019f10e4c01145bfe5766b414681225db3 /src/lib/cc
parentacb54dee7bd247ae2d631de5a0d63d246574d479 (diff)
downloadtor-e26794ace9b12a87f67b20a151d2c71a1563e26a.tar.gz
tor-e26794ace9b12a87f67b20a151d2c71a1563e26a.zip
Add TOR_PRIdSZ to torint.h
Diffstat (limited to 'src/lib/cc')
-rw-r--r--src/lib/cc/torint.h10
1 files changed, 10 insertions, 0 deletions
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