Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Add __RENAME_IF_FILE_OFFSET64.
Browse files Browse the repository at this point in the history
Convenience macro for __RENAME if __USE_FILE_OFFSET64 mode. Lets us
avoid duplicating all the doxygen comments in frameworks headers.

Test: make checkbuild
Bug: android/ndk#459
Change-Id: Ica44f22b2f1596e484694006c0926d94d16187b5
  • Loading branch information
DanAlbert committed Jul 17, 2017
1 parent dcdd0e3 commit f560537
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libc/include/sys/cdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,11 @@
#endif

/* _FILE_OFFSET_BITS 64 support. */
#if !defined(__LP64__) && defined(_FILE_OFFSET_BITS)
#if _FILE_OFFSET_BITS == 64
#if !defined(__LP64__) && defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
#define __USE_FILE_OFFSET64 1
#endif
#define __RENAME_IF_FILE_OFFSET64(func) __RENAME(func)
#else
#define __RENAME_IF_FILE_OFFSET64(func)
#endif

#define __BIONIC__ 1
Expand Down

0 comments on commit f560537

Please sign in to comment.