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

Commit

Permalink
Re-hide mempcpy.
Browse files Browse the repository at this point in the history
Bug: android/ndk#2081
Test: vcpkg install --triplet arm64-android gettext-libintl
Change-Id: Id2eff76b929543f18d64accd5b6afb64bc63e117
  • Loading branch information
DanAlbert committed Oct 22, 2024
1 parent 1aa8a0a commit 7b7abe9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libc/include/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,12 @@ void* _Nullable memrchr(const void* _Nonnull __s, int __ch, size_t __n) __attrib
int memcmp(const void* _Nonnull __lhs, const void* _Nonnull __rhs, size_t __n) __attribute_pure__;
void* _Nonnull memcpy(void* _Nonnull, const void* _Nonnull, size_t);
#if defined(__USE_GNU)
// This conflicts with a polyfill in gettext-libintl
// https://github.com/android/ndk/issues/2081
#if __ANDROID_API__ >= 23
void* _Nonnull mempcpy(void* _Nonnull __dst, const void* _Nonnull __src, size_t __n) __INTRODUCED_IN(23);
#endif
#endif
void* _Nonnull memmove(void* _Nonnull __dst, const void* _Nonnull __src, size_t __n);

/**
Expand Down

0 comments on commit 7b7abe9

Please sign in to comment.