Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
/* Set of environment variables and values. An array of strings of the form
"VARIABLE=VALUE", terminated with a NULL. */
# if defined __APPLE__ && defined __MACH__
+# include "TargetConditionals.h"
+# if !defined(TARGET_OS_IPHONE) && !defined(TARGET_IPHONE_SIMULATOR)
+# define APPLE_USE_CRT_EXTERNS
+# endif
+# endif
+#
+# ifdef APPLE_USE_CRT_EXTERNS
# include <crt_externs.h>
# define environ (*_NSGetEnviron ())
# else
/* Set of environment variables and values. An array of strings of the form
"VARIABLE=VALUE", terminated with a NULL. */
# if defined __APPLE__ && defined __MACH__
+# include "TargetConditionals.h"
+# if !defined(TARGET_OS_IPHONE) && !defined(TARGET_IPHONE_SIMULATOR)
+# define APPLE_USE_CRT_EXTERNS
+# endif
+# endif
+#
+# ifdef APPLE_USE_CRT_EXTERNS
# include <crt_externs.h>
# define environ (*_NSGetEnviron ())
# else