summaryrefslogtreecommitdiff
path: root/gtk2_ardour/main.cc
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2017-01-16 13:44:23 +0000
committerJohn Emmas <johne53@tiscali.co.uk>2017-01-16 13:44:23 +0000
commit1e03ad73362525850a016259ac917fe6702016d5 (patch)
treef78ee2c76e1589b0a1fa281419accdd341d30f57 /gtk2_ardour/main.cc
parent09a8ec534f1405184471428f5872d1bb8ebe881f (diff)
setlocale(LC_MESSAGES) isn't valid when building with MSVC
In fact AFAICT it isn't supported by MinGW either (I've a feeling it probably isn't valid on Windows at all).
Diffstat (limited to 'gtk2_ardour/main.cc')
-rw-r--r--gtk2_ardour/main.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc
index bd55e67327..41b385ce4a 100644
--- a/gtk2_ardour/main.cc
+++ b/gtk2_ardour/main.cc
@@ -306,7 +306,11 @@ int main (int argc, char *argv[])
} catch (...) {
std::cerr << "Cannot set C++ locale\n";
}
+#ifndef COMPILER_MSVC
+ // LC_MESSAGES isn't a supported locale setting when building
+ // with MSVC (in fact, I doubt if it's valid for Windows at all)
l_msg = setlocale (LC_MESSAGES, NULL);
+#endif
l_num = setlocale (LC_NUMERIC, NULL);
if (l_msg) { l_msg = strdup (l_msg); }
if (l_num) { l_num = strdup (l_num); }