X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=urcu-bp-static.h;h=7db2df6fcb7723c833dd7423c2d2e508efb83fb6;hb=36bc70a84250927ba68d5096a0a9740aec157f9b;hp=ff16fd4712ff3e669fbb9420c4f5364087c9c701;hpb=48d848c7291ec22da6258ac03cd9c1dafec1fdfb;p=urcu.git diff --git a/urcu-bp-static.h b/urcu-bp-static.h index ff16fd4..7db2df6 100644 --- a/urcu-bp-static.h +++ b/urcu-bp-static.h @@ -48,6 +48,10 @@ * This is required to permit relinking with newer versions of the library. */ +#ifdef __cplusplus +extern "C" { +#endif + /* * Active attempts to check for reader Q.S. before calling sleep(). */ @@ -194,4 +198,8 @@ static inline void _rcu_read_unlock(void) _STORE_SHARED(urcu_reader->ctr, urcu_reader->ctr - RCU_GP_COUNT); } +#ifdef __cplusplus +} +#endif + #endif /* _URCU_BP_STATIC_H */