projects
/
libdcp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use an enum class for Marker.
[libdcp.git]
/
src
/
locale_convert.cc
diff --git
a/src/locale_convert.cc
b/src/locale_convert.cc
index 46d5507f83bb2eb9532360281268c430ce37b62a..915cac826bbe58387977ed1c355c1a5243ed8985 100644
(file)
--- a/
src/locale_convert.cc
+++ b/
src/locale_convert.cc
@@
-268,6
+268,19
@@
dcp::locale_convert (string x, int, bool)
return y;
}
return y;
}
+template<>
+unsigned long long
+dcp::locale_convert (string x, int, bool)
+{
+ unsigned long long y = 0;
+#ifdef LIBDCP_WINDOWS
+ __mingw_sscanf (x.c_str(), "%llud", &y);
+#else
+ sscanf (x.c_str(), "%llud", &y);
+#endif
+ return y;
+}
+
template<>
float
dcp::locale_convert (string x, int, bool)
template<>
float
dcp::locale_convert (string x, int, bool)