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