Skip to content

Commit c576ab6

Browse files
authored
[libc++] Avoid including libc++ private header in std/ test (#79856)
Fixes #79783
1 parent 2950594 commit c576ab6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libcxx/test/std/containers/sequences/array/size_and_alignment.compile.pass.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
#include <array>
2323
#include <cstddef>
2424
#include <type_traits>
25-
#include <__type_traits/datasizeof.h>
25+
26+
#ifdef _LIBCPP_VERSION
27+
# include <__type_traits/datasizeof.h>
28+
#endif
2629

2730
#include "test_macros.h"
2831

0 commit comments

Comments
 (0)