Re: [Predef-contribute] Predefined macro updates and fixes
Brought to you by:
breese,
tahonermann
|
From: Hans-Christoph S. <ha...@at...> - 2012-11-25 20:11:08
|
Hey Guillem, Thanks for these info. Do you have any references on any of these? I'm trying to add links to the canonical source as I update the wiki. .hc On 11/23/2012 01:25 PM, Guillem Jover wrote: > Hi! > > Here's some corrections and updates: > > > For GNU/kFreeBSD both __FreeBSD_kernel__ && __GLIBC__ should be > checked, because FreeBSD has started defining __FreeBSD_kernel__ > (since FreeBSD 8.3, FreeBSD 9.1 and FreeBSD 10.0 on those branches). > > For GNU/Hurd, __gnu_hurd__ is also defined, and because it's currently > based on the GNU Mach kernel, so is __MACH__. > > The same goes for GNU/Linux, the common check there is __linux__ && > __GLIBC__ instead of __gnu_linux__ (although valid). > > To distinguish GNU/* systems in general, just testing for __GLIBC__ > should be enough. > > > The new ARM64 architecture (officially called with the unfortunate > name of AArch64...), defines the __aarch64__, __AARCH64EB__ and > __AARCH64EL__ macros (the last two for big and little endian variants). > > The new x32 architecture (or different ABI for AMD64, depending how > one looks at it), can be distinguished with __amd64__ && __ILP32__. > > > Regards, > Guillem > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > Predef-contribute mailing list > Pre...@li... > https://lists.sourceforge.net/lists/listinfo/predef-contribute > |