summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-02-17 00:01:19 +0300
committerAndrei Karas <akaras@inbox.ru>2018-02-17 00:01:19 +0300
commitf2a77f57a2ceb50385283aabafa4d3a3753d84da (patch)
tree0ecf253c83a58304159840a3b8a0f676ea6aedea
parent65b2a0ab085a4093a12fc9f9f4fefc1ffa1b9f00 (diff)
downloadplus-f2a77f57a2ceb50385283aabafa4d3a3753d84da.tar.gz
plus-f2a77f57a2ceb50385283aabafa4d3a3753d84da.tar.bz2
plus-f2a77f57a2ceb50385283aabafa4d3a3753d84da.tar.xz
plus-f2a77f57a2ceb50385283aabafa4d3a3753d84da.zip
Fix legacy time include.
-rw-r--r--src/progs/dyecmd/client.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/progs/dyecmd/client.cpp b/src/progs/dyecmd/client.cpp
index 52540a0ea..9c43b18bf 100644
--- a/src/progs/dyecmd/client.cpp
+++ b/src/progs/dyecmd/client.cpp
@@ -85,10 +85,12 @@ PRAGMA48(GCC diagnostic pop)
#include <sys/time.h>
#include "fs/specialfolder.h"
#undef ERROR
-#else // WIN32
-#include <time.h>
#endif // WIN32
+#ifdef __clang__
+#include <ctime>
+#endif // __clang__
+
#ifdef ANDROID
#ifndef USE_SDL2
PRAGMA48(GCC diagnostic push)