We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76a2472 commit 2053e91Copy full SHA for 2053e91
libcxx/include/__atomic/aliases.h
@@ -18,7 +18,6 @@
18
#include <__type_traits/make_unsigned.h>
19
#include <cstddef>
20
#include <cstdint>
21
-#include <cstdlib>
22
23
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
24
# pragma GCC system_header
libcxx/include/__thread/support/pthread.h
@@ -30,7 +30,9 @@
30
// so libc++'s <math.h> usually absorbs atomic_wide_counter.h into the
31
// module with <math.h> and makes atomic_wide_counter.h invisible.
32
// Include <math.h> here to work around that.
33
-#include <math.h>
+#if __building_module(std)
34
+# include <math.h>
35
+#endif
36
37
#ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
38
0 commit comments