summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-07-24 12:11:25 +0100
committerCarl Hetherington <cth@carlh.net>2017-07-24 12:11:25 +0100
commita4b28be9b47ca541bda1153feca9a37bbb304be6 (patch)
treedb237fe5a69175451ee45caeb39222d89e91bd1f
parent16c8932ff271bb271aeadb610ab5d04d33fc6b10 (diff)
Try to fix build on newer MinGW.
-rw-r--r--src/key.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/key.cc b/src/key.cc
index 9b586ead..43cd32eb 100644
--- a/src/key.cc
+++ b/src/key.cc
@@ -96,7 +96,11 @@ Key::hex () const
DCP_ASSERT (ASDCP::KeyLen == 16);
char buffer[33];
+#ifdef LIBDCP_WINDOWS
+ gnu_snprintf (
+#else
snprintf (
+#endif
buffer, sizeof(buffer),
"%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx",
_value[0], _value[1], _value[2], _value[3], _value[4], _value[5], _value[6], _value[7],