X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Fcompiler.h;h=6db803e9319845a38d847f6ccc339c2230f55c91;hp=4bced2a9849846a25b8c1fd59a15cd2b03af0060;hb=de10a5858ea0638c9059bb3315794ccb1401f404;hpb=dc53e23e90262674fe23889bf1cea28b27288837 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 */