Skip to content

Commit 34d4444

Browse files
committed
[libc++] Properly guard flat_map includes based on C++ version
That's what we (try to) do consistently for all other umbrella headers.
1 parent fea7b65 commit 34d4444

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

libcxx/include/flat_map

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,13 @@ namespace std {
3939

4040
#include <__assert> // all public C++ headers provide the assertion handler
4141
#include <__config>
42-
#include <__flat_map/flat_map.h>
43-
#include <__flat_map/sorted_unique.h>
42+
43+
#if _LIBCPP_STD_VER >= 23
44+
# include <__flat_map/flat_map.h>
45+
# include <__flat_map/sorted_unique.h>
46+
#endif
47+
48+
// for feature-test macros
4449
#include <version>
4550

4651
// standard required includes

0 commit comments

Comments
 (0)