Make program_options compile on iOS.

Patch from Alejandro Isaza.
Fixes #5053.


[SVN r67768]
This commit is contained in:
Vladimir Prus
2011-01-08 09:57:31 +00:00
parent 84415c1e7b
commit 28cafd9bd9

View File

@@ -45,7 +45,10 @@
// See: http://article.gmane.org/gmane.comp.lib.boost.devel/103843
// See: http://lists.gnu.org/archive/html/bug-guile/2004-01/msg00013.html
#if defined(__APPLE__) && defined(__DYNAMIC__)
#include <crt_externs.h>
// The proper include for this is crt_externs.h, however it's not
// available on iOS. The right replacement is not known. See
// https://svn.boost.org/trac/boost/ticket/5053
extern "C" { extern char ***_NSGetEnviron(void); }
#define environ (*_NSGetEnviron())
#else
#if defined(__MWERKS__)