On Thu, Nov 28, 2013 at 3:38 PM, Daniel Borca <[email protected]> wrote: > Denys Vlasenko wrote: >> >> On Wednesday 27 November 2013 02:53, Daniel Borca wrote: >>> >>> I was testing on Darwin. More specifically, iPhoneOS6.1.sdk >> >> >> Please provide a #if statement which checks specifically >> for your version of libc. __APPLE__ is too generic. > > How is that? It's not like Apple builds on many different types of > hardware with different libcs. Besides, the functions conditioned > by __APPLE__ right now are neither in MacOSX, nor in iOS.
I am not familiar with Apple. I am assuming that Apple is not hard locked down to use of just one toolchain. I expect, for example, that gcc can be built and used on it and someone can use it to build, say, static executables with uclibc. > Meh, does __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ look okay? Yes. Whatever __DEFINE__ the libc you link against is okay. glibc has __GNUC___ and __GNUC_MINOR__. Yours has .... ? _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
