Skip to content

Commit 7fc7653

Browse files
mstorsjollvmbot
authored andcommitted
[libcxx] [modules] Add _LIBCPP_USING_IF_EXISTS on aligned_alloc (#89827)
This is missing e.g. on Windows. With this change, it's possible to make the libcxx std module work on mingw-w64 (although that requires a few fixes to those headers). In the regular cstdlib header, we have _LIBCPP_USING_IF_EXISTS flagged on every single reexported function (since a9c9183), but the modules seem to only have _LIBCPP_USING_IF_EXISTS set on a few individual functions, so far. (cherry picked from commit 91526d6)
1 parent e7c816b commit 7fc7653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/modules/std.compat/cstdlib.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export {
2525
using ::system;
2626

2727
// [c.malloc], C library memory allocation
28-
using ::aligned_alloc;
28+
using ::aligned_alloc _LIBCPP_USING_IF_EXISTS;
2929
using ::calloc;
3030
using ::free;
3131
using ::malloc;

0 commit comments

Comments
 (0)