X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-pointer.h;h=359a99f9c574cde3f0f6d0587dc7145ca452a80c;hp=b10aa13a4ad5c9689f7364476b263531e86e4278;hb=af7c2dbeac32c663b64ad05e4eca70e18784463b;hpb=2b5554c9169ea1ef93dffacb7671a00f9e7de511 diff --git a/urcu-pointer.h b/urcu-pointer.h index b10aa13..359a99f 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 */