From 43c701424bead63abb533250b94ea17611a60a77 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 12 Apr 2022 18:06:12 -0400 Subject: [PATCH] agx: Wrap compiler header in extern "C" So we can use it from GTest. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compiler.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/asahi/compiler/agx_compiler.h b/src/asahi/compiler/agx_compiler.h index e2cd20db9e9..c94c1bb86ab 100644 --- a/src/asahi/compiler/agx_compiler.h +++ b/src/asahi/compiler/agx_compiler.h @@ -33,6 +33,10 @@ #include "agx_opcodes.h" #include "agx_minifloat.h" +#ifdef __cplusplus +extern "C" { +#endif + enum agx_dbg { AGX_DBG_MSGS = BITFIELD_BIT(0), AGX_DBG_SHADERS = BITFIELD_BIT(1), @@ -666,4 +670,8 @@ unsigned agx_write_registers(agx_instr *I, unsigned d); void agx_compute_liveness(agx_context *ctx); void agx_liveness_ins_update(BITSET_WORD *live, agx_instr *I); +#ifdef __cplusplus +} /* extern C */ +#endif + #endif