From 0aa266d72516f3363c7bbb643e732e8d3e76e34b Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 17 Apr 2009 20:23:11 +0000 Subject: [PATCH] protect in ifdef --- dtool/src/dtoolutil/executionEnvironment.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dtool/src/dtoolutil/executionEnvironment.cxx b/dtool/src/dtoolutil/executionEnvironment.cxx index 273fed41ed..40af7df311 100644 --- a/dtool/src/dtoolutil/executionEnvironment.cxx +++ b/dtool/src/dtoolutil/executionEnvironment.cxx @@ -29,7 +29,9 @@ #ifdef __APPLE__ // This is for _NSGetExecutablePath() and _NSGetEnviron(). #include -//#include +#ifndef BUILDING_IPHONE +#include // For some reason, not in the IPhone SDK. +#endif #define environ (*_NSGetEnviron()) #endif