From: Perttu Ahola Date: Mon, 20 Jun 2011 04:56:45 +0000 (+0300) Subject: moved the mac include in porting.cpp out of namespace X-Git-Tag: 0.2.20110731_3~103 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bdd13750117ee7414932772fe00631154bac6814;p=oweals%2Fminetest.git moved the mac include in porting.cpp out of namespace --- 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 - #include "CoreFoundation/CoreFoundation.h" // Code based on // http://stackoverflow.com/questions/516200/relative-paths-not-working-in-xcode-c