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