> #elif ! (defined (__vxworks)) > > ^^^^^^ __vxworks will not be defined by anything other than a vxworks > compiler, I'd assume (it is certainly not defined by Darwin toolchains) > > extern char **environ; > return environ; > > vvvvvvv so I don't see how this case will ever be exercised. > #elif defined (__APPLE__) && !defined (__arm__) > return *_NSGetEnviron (); > #else > return environ; > #endif > }
Ehh, you're right. They must be swapped. I missed the '!' in the vxworks case, and that wasn't detected by our build. Tristan.