Skip to content

Commit 67198d1

Browse files
[libc] Fix wrapper headers for at_quick_exit on GLIBC for C++11 (#166960)
Eliminate compilation error related to missing exception specification 'noexcept(true)' for at_quick_exit function in C++11.
1 parent 50ba89a commit 67198d1

File tree

1 file changed

+2
-2
lines changed
  • clang/lib/Headers/llvm_libc_wrappers

1 file changed

+2
-2
lines changed

clang/lib/Headers/llvm_libc_wrappers/stdlib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ _Static_assert(__builtin_offsetof(div_t, quot) == 0, "ABI mismatch!");
3434
_Static_assert(__builtin_offsetof(ldiv_t, quot) == 0, "ABI mismatch!");
3535
_Static_assert(__builtin_offsetof(lldiv_t, quot) == 0, "ABI mismatch!");
3636

37-
#if defined(__GLIBC__) && __cplusplus >= 201703L
37+
#if defined(__GLIBC__) && __cplusplus >= 201103L
3838
#define at_quick_exit atexit
3939
#endif
4040

4141
#include <llvm-libc-decls/stdlib.h>
4242

43-
#if defined(__GLIBC__) && __cplusplus >= 201703L
43+
#if defined(__GLIBC__) && __cplusplus >= 201103L
4444
#undef at_quick_exit
4545
#endif
4646

0 commit comments

Comments
 (0)