Skip to content

Commit 5f16b6a

Browse files
JMLX42Jean-Marc Le Rouxeramongodb
committed
CDRIVER-4654 Fix missing aligned_alloc() on Android (#1286)
* CDRIVER-4654 Fix missing aligned_alloc() on Android * chore: fix coding style Co-authored-by: Ezra Chung <[email protected]> --------- Co-authored-by: Jean-Marc Le Roux <jmlx@Enterprise-C> Co-authored-by: Ezra Chung <[email protected]>
1 parent 40f748b commit 5f16b6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libbson/src/bson/bson-memory.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ BSON_STATIC_ASSERT2 (bson_mem_vtable_t,
3333
// For compatibility with C standards prior to C11.
3434
static void *
3535
_aligned_alloc_impl (size_t alignment, size_t num_bytes)
36-
#if __STDC_VERSION__ >= 201112L && !defined(_WIN32)
36+
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && \
37+
!defined(_WIN32) && !defined(__ANDROID__)
3738
{
3839
return aligned_alloc (alignment, num_bytes);
3940
}

0 commit comments

Comments
 (0)