summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-23 10:59:01 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-23 11:54:30 +0100
commit04fff85c760e36b473556e5e1643f38ea8c6009b (patch)
tree293370ce881c846e11af52207a24fe9a3d764701
parent00cbc7490641a697dbedb85b3b2ff3f75893b7ff (diff)
downloadmana-client-04fff85c760e36b473556e5e1643f38ea8c6009b.tar.gz
mana-client-04fff85c760e36b473556e5e1643f38ea8c6009b.tar.bz2
mana-client-04fff85c760e36b473556e5e1643f38ea8c6009b.tar.xz
mana-client-04fff85c760e36b473556e5e1643f38ea8c6009b.zip
Fixed compile on Windows
Reviewed-by: Bernd Wachter
-rw-r--r--src/client.cpp2
-rw-r--r--src/game.cpp2
-rw-r--r--src/main.cpp4
3 files changed, 5 insertions, 3 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 1f608fa6..cf1a6496 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -86,9 +86,9 @@
#include <SDL_syswm.h>
#else
#include <cerrno>
-#include <sys/stat.h>
#endif
+#include <sys/stat.h>
#include <cassert>
/**
diff --git a/src/game.cpp b/src/game.cpp
index 56978dca..40450fee 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -88,8 +88,6 @@
#include <physfs.h>
-#include <sys/stat.h>
-
#include <fstream>
#include <sstream>
#include <string>
diff --git a/src/main.cpp b/src/main.cpp
index 5ed1c4ec..205ba6eb 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -31,6 +31,10 @@
#include <iostream>
#include <physfs.h>
+#ifdef WIN32
+#include <windows.h>
+#endif
+
static void printHelp()
{
using std::endl;