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);