[Mono-devel-list] Re: build error Re: Cocoa Bindings for Mono
Adhamh Findlay
adhamh at apple.com
Fri May 21 18:44:29 EDT 2004
Would the proper way to fix this be:
#if defined (__APPLE__)
#include <crt_externs.h>
#define environ (* _NSGetEnviron())
#elif
char **environ;
#endif
or this:
#if defined (__APPLE__)
#include <crt_externs.h>
char **environ (* _NSGetEnviron())
#elif
char **environ;
#endif
I think it is the first way because the mono code does not appear to be
appear to be changing environ later, so it seems a constant would be
okay.
Adhamh
More information about the Mono-devel-list
mailing list