summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-03 11:00:18 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-03 11:00:18 -0400
commit02a4442524d84ea7edf6e3f136017faa73452d92 (patch)
treeb7870d99b8b95f63b11cb29e0ac1a435bd673c95 /src/common
parentd5a3bb960d41873ccfde0bbdb4adfb762528069e (diff)
downloadtor-02a4442524d84ea7edf6e3f136017faa73452d92.tar.gz
tor-02a4442524d84ea7edf6e3f136017faa73452d92.zip
Fix up some windows compilation issues.
These were mostly cases where our previous macros had been casting, and the values that we were trying to printf were not in fact uint64_t.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/procmon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/procmon.c b/src/common/procmon.c
index 9799594d3e..6c2b3e71e5 100644
--- a/src/common/procmon.c
+++ b/src/common/procmon.c
@@ -35,8 +35,8 @@ typedef int pid_t;
#define PID_T_FORMAT "%d"
#elif (SIZEOF_PID_T == SIZEOF_LONG)
#define PID_T_FORMAT "%ld"
-#elif (SIZEOF_PID_T == SIZEOF_INT64_T)
-#define PID_T_FORMAT I64_FORMAT
+#elif (SIZEOF_PID_T == 8)
+#define PID_T_FORMAT "%"PRId64
#else
#error Unknown: SIZEOF_PID_T
#endif /* (0 == SIZEOF_PID_T) && defined(_WIN32) || ... */