id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,lang,patch,platform
782,src/pmc/env.t confuses compiler specific and platform specific macros,moritz,,"From src/pmc/env.pmc (lines 23 and onwards)

{{{
/* array of environment variables,
   speced in POSIX.1, but not in ISO-C
   MS C compilers know about environ, as it is declared in stdlib.h.
   OS X doesn't allow access to ""environ"" from within shared libraries.
*/
#ifndef WIN32
#  ifdef __APPLE_CC__
#    include <crt_externs.h>
#    define environ (*_NSGetEnviron())
#  else /* !__APPLE_CC__ */
extern char **environ;
#  endif /* __APPLE_CC__ */
#endif /* !WIN32 */
}}}

This causes build failures on linux with clang (a llvm frontend) which sets the __APPLE_CC__ macro, but doesn't provide crt_externs.h

It seems that it would be more appropriate to check for being on MacOS than checking a vendor specific macro.",bug,closed,normal,,core,1.3.0,medium,worksforme,"build, macos, clang",,,,linux
