From ecfe57caf24f658b8f45e6b55006e05e96bba015 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Wed, 9 Mar 2011 18:50:24 +0100 Subject: [PATCH] platform check fix --- components/misc/fileops.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/misc/fileops.cpp b/components/misc/fileops.cpp index c6a70b3386..2a70238f8c 100644 --- a/components/misc/fileops.cpp +++ b/components/misc/fileops.cpp @@ -2,13 +2,15 @@ #include #include +#include + bool isFile(const char *name) { boost::filesystem::path cfg_file_path(name); return boost::filesystem::exists(cfg_file_path); } -#ifdef OGRE_PLATFORM == OGRE_PLATFORM_APPLE +#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE #include std::string macBundlePath() @@ -16,7 +18,7 @@ std::string macBundlePath() char path[1024]; CFBundleRef mainBundle = CFBundleGetMainBundle(); assert(mainBundle); - + CFURLRef mainBundleURL = CFBundleCopyBundleURL(mainBundle); assert(mainBundleURL);