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