From a98d367cbc7590d49890b5b26388b1ce116df09d Mon Sep 17 00:00:00 2001 From: doodspav Date: Mon, 6 May 2024 22:03:30 +0300 Subject: [PATCH] GHI #32 Add extern C to ops/implicit.h --- include/patomic/types/ops/implicit.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/patomic/types/ops/implicit.h b/include/patomic/types/ops/implicit.h index b64afa8ec..acf634988 100644 --- a/include/patomic/types/ops/implicit.h +++ b/include/patomic/types/ops/implicit.h @@ -1,7 +1,9 @@ #ifndef PATOMIC_OPS_IMPLICIT_H #define PATOMIC_OPS_IMPLICIT_H -// TODO: extern C +#ifdef __cplusplus +extern "C" { +#endif /** @@ -486,4 +488,8 @@ typedef struct { } patomic_ops_t; +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* PATOMIC_OPS_IMPLICIT_H */