Skip to content

Commit ad1ddf1

Browse files
committed
re-export calloc, realloc, aligned_alloc
1 parent 2c0f579 commit ad1ddf1

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

cpp/common/test/includes/standard-library/cstdlib

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ using ::atoll;
1313
using ::exit;
1414
using ::free;
1515
using ::malloc;
16+
using ::calloc;
17+
using ::realloc;
18+
using ::aligned_alloc;
1619
using ::quick_exit;
1720
using ::rand;
1821
using ::strtod;

cpp/common/test/includes/standard-library/memory.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ template <typename T1> struct allocator_traits {
165165
static pointer allocate(T1 &, size_type, const_void_pointer);
166166
static void deallocate(T1 &, pointer, size_type);
167167
};
168+
168169
} // namespace std
169170

170171
#endif // _GHLIBCPP_MEMORY

cpp/common/test/includes/standard-library/stdlib.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ void *calloc(size_t num, size_t size);
77
void free(void *ptr);
88
void *malloc(size_t size);
99
void *realloc(void *ptr, size_t size);
10+
void* aligned_alloc(size_t, size_t);
1011

1112
[[noreturn]] void _Exit(int status) noexcept;
1213
[[noreturn]] void abort(void) noexcept;
@@ -36,4 +37,4 @@ long double strtold(const char *str, char **endptr);
3637

3738
int rand(void);
3839

39-
#endif // _GHLIBCPP_STDLIB
40+
#endif // _GHLIBCPP_STDLIB

0 commit comments

Comments
 (0)