projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
748340f
)
moved the mac include in porting.cpp out of namespace
author
Perttu Ahola
<celeron55@gmail.com>
Mon, 20 Jun 2011 04:56:45 +0000
(07:56 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Mon, 20 Jun 2011 04:56:45 +0000
(07:56 +0300)
src/porting.cpp
patch
|
blob
|
history
diff --git
a/src/porting.cpp
b/src/porting.cpp
index cce461be8a247a7de8156e856a606eafc71629c9..7de042ab571143eb1e69b8d6fd958c60c094cd83 100644
(file)
--- 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