More __mingw_snprintf fixes. mxe
authorCarl Hetherington <cth@carlh.net>
Mon, 24 Jul 2017 11:25:50 +0000 (12:25 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 24 Jul 2017 11:25:50 +0000 (12:25 +0100)
src/decrypted_kdm.cc

index 72070fe723936bf657cad832ffae398c48a0fd41..d0e2cc0dc110149a50182169920dd373f2dcd3d7 100644 (file)
@@ -101,7 +101,11 @@ string
 DecryptedKDM::get_uuid (unsigned char ** p)
 {
        char buffer[37];
+#ifdef LIBDCP_WINDOWS
+       __mingw_snprintf (
+#else
        snprintf (
+#endif
                buffer, sizeof(buffer), "%02hhx%02hhx%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx",
                (*p)[0], (*p)[1], (*p)[2], (*p)[3], (*p)[4], (*p)[5], (*p)[6], (*p)[7],
                (*p)[8], (*p)[9], (*p)[10], (*p)[11], (*p)[12], (*p)[13], (*p)[14], (*p)[15]