aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-06-20 07:56:45 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-06-20 07:56:45 +0300
commitbdd13750117ee7414932772fe00631154bac6814 (patch)
tree7879b37306dadcc7e5550d454c27b72d07983376
parent748340fad59abc6da2369455c268d6a66c738e69 (diff)
downloadminetest-bdd13750117ee7414932772fe00631154bac6814.tar.gz
minetest-bdd13750117ee7414932772fe00631154bac6814.tar.bz2
minetest-bdd13750117ee7414932772fe00631154bac6814.zip
moved the mac include in porting.cpp out of namespace
-rw-r--r--src/porting.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/porting.cpp b/src/porting.cpp
index cce461be8..7de042ab5 100644
--- a/src/porting.cpp
+++ b/src/porting.cpp
@@ -27,6 +27,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "config.h"
#include "debug.h"
+#ifdef __APPLE__
+ #include "CoreFoundation/CoreFoundation.h"
+#endif
+
namespace porting
{
@@ -214,7 +218,6 @@ void initializePaths()
*/
#elif defined(__APPLE__)
#include <unistd.h>
- #include "CoreFoundation/CoreFoundation.h"
// Code based on
// http://stackoverflow.com/questions/516200/relative-paths-not-working-in-xcode-c