diff --git a/include/patomic/types/ops/explicit.h b/include/patomic/types/ops/explicit.h index 2d66e3156..d4fa6abdb 100644 --- a/include/patomic/types/ops/explicit.h +++ b/include/patomic/types/ops/explicit.h @@ -1,7 +1,9 @@ #ifndef PATOMIC_OPS_EXPLICIT_H #define PATOMIC_OPS_EXPLICIT_H -// TODO: extern "C" +#ifdef __cplusplus +extern "C" { +#endif /** @@ -532,4 +534,8 @@ typedef struct { } patomic_ops_explicit_t; +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* PATOMIC_OPS_EXPLICIT_H */