xref: /freebsd/contrib/llvm-project/clang/lib/Headers/cuda_wrappers/bits/basic_string.h (revision 4542f901cb0c5dd66ab5b541f2fbc659fd46f893)
1 // CUDA headers define __noinline__ which interferes with libstdc++'s use of
2 // `__attribute((__noinline__))`. In order to avoid compilation error,
3 // temporarily unset __noinline__ when we include affected libstdc++ header.
4 
5 #pragma push_macro("__noinline__")
6 #undef __noinline__
7 #include_next "bits/basic_string.h"
8 
9 #pragma pop_macro("__noinline__")
10