X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Fcompiler.h;h=6db803e9319845a38d847f6ccc339c2230f55c91;hb=4dd4a47355d9d870d482248786b4adf8b1317bfe;hp=4bced2a9849846a25b8c1fd59a15cd2b03af0060;hpb=dc53e23e90262674fe23889bf1cea28b27288837;p=urcu.git diff --git a/urcu/compiler.h b/urcu/compiler.h index 4bced2a..6db803e 100644 --- a/urcu/compiler.h +++ b/urcu/compiler.h @@ -79,4 +79,10 @@ */ #define __rcu +#ifdef __cplusplus +#define URCU_FORCE_CAST(type, arg) (reinterpret_cast(arg)) +#else +#define URCU_FORCE_CAST(type, arg) ((type) (arg)) +#endif + #endif /* _URCU_COMPILER_H */