Add Atmos read/write and untested MXF decryption tool.
[libdcp.git] / src / locale_convert.cc
index fc156244929d2c29f7e39f42b671b98aae221a14..89c797599a4374eb60286f8d0a630ce6f9e88d48 100644 (file)
@@ -185,11 +185,20 @@ dcp::locale_convert (string x, int, bool)
 }
 
 template<>
-int64_t
+long
 dcp::locale_convert (string x, int, bool)
 {
-       int64_t y = 0;
-       sscanf (x.c_str(), "%" PRId64, &y);
+       long int y = 0;
+       sscanf (x.c_str(), "%ld", &y);
+       return y;
+}
+
+template<>
+long long
+dcp::locale_convert (string x, int, bool)
+{
+       long long y = 0;
+       sscanf (x.c_str(), "%lld", &y);
        return y;
 }