summaryrefslogtreecommitdiff
path: root/src/port.h
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2014-12-07 19:04:11 +0100
committerAndreas Baumann <abaumann@yahoo.com>2014-12-07 19:04:11 +0100
commitc1ee4a252d82ff8ef4bf0845b4c2f21d2b4ec000 (patch)
tree4576102b682364a423870352e2e4e7d7b98c90c9 /src/port.h
parent645bd551dcfb609ce4b57a205bbf1c3e129d4ef3 (diff)
downloadbiruda-c1ee4a252d82ff8ef4bf0845b4c2f21d2b4ec000.tar.gz
biruda-c1ee4a252d82ff8ef4bf0845b4c2f21d2b4ec000.tar.bz2
passing pid as string in a message, added portable PRIx macro for GPid
Diffstat (limited to 'src/port.h')
-rw-r--r--src/port.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/port.h b/src/port.h
index 5fefa88..f2e1564 100644
--- a/src/port.h
+++ b/src/port.h
@@ -37,4 +37,10 @@ typedef unsigned char _Bool;
#define PORT_DIR_SEPARATOR '/'
#endif
+#ifdef _WIN32
+#define PRIgid "%p"
+#else
+#define PRIgid "%d"
+#endif
+
#endif