summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-02-16 20:55:43 +0300
committerAndrei Karas <akaras@inbox.ru>2018-02-16 20:55:43 +0300
commitbb4cd214f7bc2aebcada92ff932af3e1f84ce9e1 (patch)
treeda852cbd8779d3c008dbe798054131b6f7d6e744
parente9032dbe7344c5dc9832008f2fbcc448c88eec29 (diff)
downloadmanaplus-bb4cd214f7bc2aebcada92ff932af3e1f84ce9e1.tar.gz
manaplus-bb4cd214f7bc2aebcada92ff932af3e1f84ce9e1.tar.bz2
manaplus-bb4cd214f7bc2aebcada92ff932af3e1f84ce9e1.tar.xz
manaplus-bb4cd214f7bc2aebcada92ff932af3e1f84ce9e1.zip
Fix compilation with clang.
-rw-r--r--src/progs/dyecmd/client.cpp2
-rw-r--r--src/utils/gettexthelper.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/progs/dyecmd/client.cpp b/src/progs/dyecmd/client.cpp
index 27109753d..52540a0ea 100644
--- a/src/progs/dyecmd/client.cpp
+++ b/src/progs/dyecmd/client.cpp
@@ -85,6 +85,8 @@ PRAGMA48(GCC diagnostic pop)
#include <sys/time.h>
#include "fs/specialfolder.h"
#undef ERROR
+#else // WIN32
+#include <time.h>
#endif // WIN32
#ifdef ANDROID
diff --git a/src/utils/gettexthelper.cpp b/src/utils/gettexthelper.cpp
index 9b8f16352..483faf0cf 100644
--- a/src/utils/gettexthelper.cpp
+++ b/src/utils/gettexthelper.cpp
@@ -31,6 +31,7 @@
#include "fs/virtfs/fs.h"
#include <libintl.h>
+#include <locale.h>
#ifdef WIN32
#include <string>