cuda-compatibility-workarounds: Fix build with upcoming glibc 2.41

sinpi/cospi/sinpif/cospif are now defined in glibc as part of C23 extentions
but they conflict with CUDA declrations, therefore use the glibc definitions
when its provided by glibc

Fixes https://github.com/OE4T/meta-tegra/issues/1784

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2024-12-16 11:58:51 -08:00
committed by Matt Madison
parent c523c2f938
commit 3c0d8bed93

View File

@@ -1,3 +1,4 @@
#include <bits/libm-simd-decl-stubs.h>
#undef __ADVSIMD_VEC_MATH_SUPPORTED
#undef __SVE_VEC_MATH_SUPPORTED
#undef __GLIBC_USE_IEC_60559_FUNCS_EXT_C23