mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-20 05:54:54 -04:00
protect in ifdef
This commit is contained in:
parent
a08b08f8d3
commit
0aa266d725
@ -29,7 +29,9 @@
|
|||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
// This is for _NSGetExecutablePath() and _NSGetEnviron().
|
// This is for _NSGetExecutablePath() and _NSGetEnviron().
|
||||||
#include <mach-o/dyld.h>
|
#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())
|
#define environ (*_NSGetEnviron())
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user