summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-09-29 11:04:28 +0100
committerCarl Hetherington <cth@carlh.net>2016-09-29 11:04:53 +0100
commit4545c55031bd900a1d02b62dcf271465fcd7a2fb (patch)
tree84b39506b6663d650012ee1a047635adaa3ad86e /src
parentd652289994b6e5c2f70a1e60c7c7bc11d0085837 (diff)
Probable Win32 fix.
Diffstat (limited to 'src')
-rw-r--r--src/locale_convert.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/locale_convert.cc b/src/locale_convert.cc
index 89c79759..6bab34d1 100644
--- a/src/locale_convert.cc
+++ b/src/locale_convert.cc
@@ -61,7 +61,11 @@ string
dcp::locale_convert (long int x, int, bool)
{
char buffer[64];
+#ifdef LIBDCP_WINDOWS
+ __mingw_snprintf (buffer, sizeof(buffer), "%ld", x);
+#else
snprintf (buffer, sizeof(buffer), "%ld", x);
+#endif
return buffer;
}