Skip to content

Commit 2053e91

Browse files
committed
[libc++] Remove unnecessary includes from <atomic>
1 parent 76a2472 commit 2053e91

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libcxx/include/__atomic/aliases.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include <__type_traits/make_unsigned.h>
1919
#include <cstddef>
2020
#include <cstdint>
21-
#include <cstdlib>
2221

2322
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
2423
# pragma GCC system_header

libcxx/include/__thread/support/pthread.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
// so libc++'s <math.h> usually absorbs atomic_wide_counter.h into the
3131
// module with <math.h> and makes atomic_wide_counter.h invisible.
3232
// Include <math.h> here to work around that.
33-
#include <math.h>
33+
#if __building_module(std)
34+
# include <math.h>
35+
#endif
3436

3537
#ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
3638
# pragma GCC system_header

0 commit comments

Comments
 (0)