diff --git a/include/patomic/types/ops/transaction.h b/include/patomic/types/ops/transaction.h index 6152e5b3b..7201074f8 100644 --- a/include/patomic/types/ops/transaction.h +++ b/include/patomic/types/ops/transaction.h @@ -5,7 +5,9 @@ #include -// TODO: extern "C" +#ifdef __cplusplus +extern "C" { +#endif /** @@ -1070,4 +1072,8 @@ typedef struct { } patomic_ops_transaction_t; +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* PATOMIC_OPS_TRANSACTION_H */