AW: [PATCH 5/5] Bionic lacks transparent LFS migrations; provide a workaround

dietmar.schindler at manroland-web.com dietmar.schindler at manroland-web.com
Mon Apr 27 06:30:59 UTC 2015


> On Friday, 24 April 2015, at 4:12 am, Matt Whitlock wrote:
> > +#if defined(__BIONIC__) && _FILE_OFFSET_BITS == 64
>
> The preprocessor needs to test whether _FILE_OFFSET_BITS is defined before using it in an
> expression.

That's not true. INTERNATIONAL STANDARD ©ISO/IEC ISO/IEC 9899:201x, Programming languages - C, 6.10.1 Conditional inclusion, §4:
"... After all replacements due to macro expansion and the *defined* unary operator have been performed, all remaining identifiers ... are replaced with the pp-number 0..."

Thus, it's not needed to write

> #if defined(__BIONIC__) && defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
--
Best regards,
Dietmar Schindler
________________________________
manroland web systems GmbH -- Managing Director: Joern Gosse
Registered Office: Augsburg -- Trade Register: AG Augsburg -- HRB-No.: 26816 -- VAT: DE281389840

Confidentiality note:
This eMail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you have received this eMail in error, then please delete this eMail.

! Please consider your environmental responsibility before printing this eMail !
________________________________


More information about the busybox mailing list