diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-12 10:50:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-12 10:50:22 +0100 |
| commit | 06a5d6461590a49c5cc014c279279bc63a432a2a (patch) | |
| tree | 453f4438dbc9a2546eaf715481f6849438cfdfc3 /src/decrypted_kdm.cc | |
| parent | 8ba922f93370862e0947e4d59cb7ae11fd0ace80 (diff) | |
Attempts to fix Windows build.
Diffstat (limited to 'src/decrypted_kdm.cc')
| -rw-r--r-- | src/decrypted_kdm.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/decrypted_kdm.cc b/src/decrypted_kdm.cc index ef6a6208..05ea73a3 100644 --- a/src/decrypted_kdm.cc +++ b/src/decrypted_kdm.cc @@ -78,7 +78,11 @@ DecryptedKDM::put_uuid (uint8_t ** d, string id) { /* 32 hex digits plus some hyphens */ DCP_ASSERT (id.length() == 36); +#ifdef LIBDCP_WINDOWS + __mingw_sscanf ( +#else sscanf ( +#endif id.c_str(), "%02hhx%02hhx%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx", *d + 0, *d + 1, *d + 2, *d + 3, *d + 4, *d + 5, *d + 6, *d + 7, |
