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 abbae3a commit 219c923Copy full SHA for 219c923
libcxx/include/__configuration/platform.h
@@ -30,16 +30,17 @@
30
// ... add new file formats here ...
31
#endif
32
33
-// Need to detect which libc we're using if we're on Linux.
34
-#if defined(__linux__)
+// To detect which libc we're using
+#if __has_include(<features.h>)
35
# include <features.h>
36
+#endif
37
+
38
+#if defined(__linux__)
39
# if defined(__GLIBC_PREREQ)
40
# define _LIBCPP_GLIBC_PREREQ(a, b) __GLIBC_PREREQ(a, b)
41
# else
42
# define _LIBCPP_GLIBC_PREREQ(a, b) 0
43
# endif // defined(__GLIBC_PREREQ)
-#elif defined(__AMDGPU__) || defined(__NVPTX__)
-# include <features.h>
44
45
46
#ifndef __BYTE_ORDER__
0 commit comments