Browse Source

protect in ifdef

David Rose 16 years ago
parent
commit
0aa266d725
1 changed files with 3 additions and 1 deletions
  1. 3 1
      dtool/src/dtoolutil/executionEnvironment.cxx

+ 3 - 1
dtool/src/dtoolutil/executionEnvironment.cxx

@@ -29,7 +29,9 @@
 #ifdef __APPLE__
 // This is for _NSGetExecutablePath() and _NSGetEnviron().
 #include <mach-o/dyld.h>
-//#include <crt_externs.h>
+#ifndef BUILDING_IPHONE
+#include <crt_externs.h>  // For some reason, not in the IPhone SDK.
+#endif
 #define environ (*_NSGetEnviron())
 #endif