From 184bc0a1626e340483b1067d87115278b1d85e58 Mon Sep 17 00:00:00 2001 From: doodspav Date: Fri, 10 May 2024 21:11:47 +0300 Subject: [PATCH] GHI #32 Add extern C to transaction ops --- include/patomic/types/ops/transaction.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 */