[OFFLOAD] Fix a build break (#189076)

This PR fixes a build break reported after introduction of spirv
function declarations
This commit is contained in:
fineg74 2026-03-27 11:28:51 -07:00 committed by GitHub
parent c703ea52be
commit 34a4fe5bc9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,9 @@
#if defined(__cplusplus)
extern "C" {
#else
_Pragma("push_macro(\"bool\")");
#define bool _Bool
#endif
#define _CLC_OVERLOAD [[clang::overloadable]]
@ -138,5 +141,7 @@ _CLC_OVERLOAD _CLC_CONSTFN double __spirv_ocl_trunc(double);
#if defined(__cplusplus)
} // extern "C"
#else
_Pragma("pop_macro(\"bool\")");
#endif
#endif // __CLANG_SPIRV_LIBDEVICE_DECLARES_H__