Merge pull request #307 from j-hui/add-extern-c

Add extern "C" to shim header file
This commit is contained in:
Stephen Canon authored and GitHub committed 2025-05-28 15:27:45 -04:00
commit 6356eb395b
1 file changed
+8
@@ -9,6 +9,10 @@
//
//===----------------------------------------------------------------------===//
#ifdef __cplusplus
extern "C" {
#endif
#define HEADER_SHIM static inline __attribute__((__always_inline__))
// This header uses most of the libm functions, but we don't want to end up
@@ -450,3 +454,7 @@ HEADER_SHIM void _numerics_optimization_barrier(const void *pointer) {
}
#undef CLANG_RELAX_FP
#ifdef __cplusplus
}
#endif