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

Commit 101fbeb

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "Stop using versioner." into main
2 parents db6719f + e135120 commit 101fbeb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

libc/Android.bp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2231,10 +2231,11 @@ cc_library_static {
22312231
// NDK headers.
22322232
// ========================================================
22332233

2234-
versioned_ndk_headers {
2234+
ndk_headers {
22352235
name: "common_libc",
22362236
from: "include",
22372237
to: "",
2238+
srcs: ["include/**/*.h"],
22382239
license: "NOTICE",
22392240
}
22402241

libc/include/malloc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ void* _Nullable calloc(size_t __item_count, size_t __item_size) __mallocfunc __B
7676
*/
7777
void* _Nullable realloc(void* _Nullable __ptr, size_t __byte_count) __BIONIC_ALLOC_SIZE(2) __wur;
7878

79+
// Remove the explicit guard once //external/giflib has been fixed so that it no
80+
// longer provides a conflicting definition: http://b/352784252
81+
#if __ANDROID_API__ >= 29
7982
/**
8083
* [reallocarray(3)](https://man7.org/linux/man-pages/man3/realloc.3.html) resizes
8184
* allocated memory on the heap.
@@ -88,6 +91,7 @@ void* _Nullable realloc(void* _Nullable __ptr, size_t __byte_count) __BIONIC_ALL
8891
* (but see the notes for malloc()).
8992
*/
9093
void* _Nullable reallocarray(void* _Nullable __ptr, size_t __item_count, size_t __item_size) __BIONIC_ALLOC_SIZE(2, 3) __wur __INTRODUCED_IN(29);
94+
#endif
9195

9296
/**
9397
* [free(3)](https://man7.org/linux/man-pages/man3/free.3.html) deallocates

0 commit comments

Comments
 (0)