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 */