X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=include%2Furcu%2Flfstack.h;fp=include%2Furcu%2Flfstack.h;h=43ef2a5ccad5b0b90ef38c818d691ccfee0e3476;hp=5a9bca368775db300cbd1bac44e5fbcd51c6ce47;hb=2875743718fb23293190b5edd0f2b530977270b1;hpb=153b081a9b007aad7bece415dc3bf1125edd2da3 diff --git a/include/urcu/lfstack.h b/include/urcu/lfstack.h index 5a9bca3..43ef2a5 100644 --- a/include/urcu/lfstack.h +++ b/include/urcu/lfstack.h @@ -29,6 +29,7 @@ extern "C" { #include #include +#include /* * Lock-free stack. @@ -83,11 +84,13 @@ struct cds_lfs_stack { * The transparent union allows calling functions that work on both * struct cds_lfs_stack and struct __cds_lfs_stack on any of those two * types. + * + * Avoid complaints from clang++ not knowing this attribute. */ typedef union { struct __cds_lfs_stack *_s; struct cds_lfs_stack *s; -} __attribute__((__transparent_union__)) cds_lfs_stack_ptr_t; +} caa_c_transparent_union cds_lfs_stack_ptr_t; #ifdef _LGPL_SOURCE