projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16c8932
)
Try to fix build on newer MinGW.
author
Carl Hetherington
<cth@carlh.net>
Mon, 24 Jul 2017 11:11:25 +0000
(12:11 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 24 Jul 2017 11:11:25 +0000
(12:11 +0100)
src/key.cc
patch
|
blob
|
history
diff --git
a/src/key.cc
b/src/key.cc
index 9b586ead13eed52a71ce2856fe921fe39f0a5a11..43cd32ebc581935c9c1e4bb71f2d5341c841acb5 100644
(file)
--- 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],