aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/i18n.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/vncviewer/i18n.h b/vncviewer/i18n.h
index fd6c363d..58829d6c 100644
--- a/vncviewer/i18n.h
+++ b/vncviewer/i18n.h
@@ -28,6 +28,18 @@ pgettext_aux (const char *domain,
int category) __attribute__ ((format_arg (3)));
#endif
+/*
+ * LC_MESSAGES is only in POSIX, and hence missing on Windows. libintl
+ * fixes that for us, but if that isn't included then we need to sort it
+ * out ourselves.
+ */
+#if !defined ENABLE_NLS || !ENABLE_NLS
+#include <locale.h>
+#ifndef LC_MESSAGES
+#define LC_MESSAGES 1729
+#endif
+#endif
+
#include "gettext.h"
/* gettext breaks -Wformat (upstream bug 64384) */