X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-pointer.h;h=027a18fd4d0b57159a096e5a575d1618ddcfe364;hp=948ac423f667b1810f1fccc3b77b40126a428ff1;hb=a2e7bf9ce5de5113c7f59c380b0087e291cd603d;hpb=48d848c7291ec22da6258ac03cd9c1dafec1fdfb diff --git a/urcu-pointer.h b/urcu-pointer.h index 948ac42..027a18f 100644 --- a/urcu-pointer.h +++ b/urcu-pointer.h @@ -6,7 +6,7 @@ * * Userspace RCU header. Operations on pointers. * - * Copyright (c) 2009 Mathieu Desnoyers + * Copyright (c) 2009 Mathieu Desnoyers * Copyright (c) 2009 Paul E. McKenney, IBM Corporation. * * This library is free software; you can redistribute it and/or @@ -28,11 +28,15 @@ #include #include -#include +#include + +#ifdef __cplusplus +extern "C" { +#endif #ifdef _LGPL_SOURCE -#include +#include /* * rcu_dereference(ptr) @@ -107,4 +111,8 @@ extern void *rcu_set_pointer_sym(void **p, void *v); */ #define rcu_assign_pointer(p, v) rcu_set_pointer((&p), (v)) +#ifdef __cplusplus +} +#endif + #endif /* _URCU_POINTER_H */