summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-19 20:59:49 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-19 20:59:49 +0300
commit378441b559615cc96150e64137ae2ce02d23d2f2 (patch)
tree10ceb5467000747f3b1d6f41c96ca5a595f57d4f /src/utils
parent11209f8ab3bfc738f0249e0cdfe6400f73cb0b85 (diff)
downloadmanaplus-378441b559615cc96150e64137ae2ce02d23d2f2.tar.gz
manaplus-378441b559615cc96150e64137ae2ce02d23d2f2.tar.bz2
manaplus-378441b559615cc96150e64137ae2ce02d23d2f2.tar.xz
manaplus-378441b559615cc96150e64137ae2ce02d23d2f2.zip
fix some compilation issues in different platforms.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/process.cpp2
-rw-r--r--src/utils/stringutils.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/utils/process.cpp b/src/utils/process.cpp
index 37670b18b..1859b1c2f 100644
--- a/src/utils/process.cpp
+++ b/src/utils/process.cpp
@@ -34,6 +34,7 @@ const int timeOut = 10;
#ifdef WIN32
+#include "utils/stringutils.h"
#include <windows.h>
int execFileWait(const std::string &pathName, const std::string &name A_UNUSED,
@@ -236,6 +237,7 @@ bool openBrowser(std::string url)
nullptr, nullptr, SW_SHOWNORMAL)) > 32;
}
#elif defined ANDROID
+#include "utils/stringutils.h"
#include <SDL_screenkeyboard.h>
bool openBrowser(std::string url)
{
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index c5ac71d28..680d8e44d 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -26,9 +26,9 @@
#include <algorithm>
#include <cstdarg>
#include <cstdio>
-#include <list>
-
#include <ctype.h>
+#include <list>
+#include <time.h>
#include "debug.h"