X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=rculfstack.c;h=df5c54703820461766b6cc18bf7f961812cad8b7;hp=aa906af9480c66efce8c35ccf8d2b3625b9aabfd;hb=92af1a30ca6a70945b167c31631c8598a626c71a;hpb=d4b99c015229978810319cfd42e1c9763772fad8 diff --git a/rculfstack.c b/rculfstack.c index aa906af..df5c547 100644 --- a/rculfstack.c +++ b/rculfstack.c @@ -20,20 +20,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -/* Use the urcu symbols to select the appropriate rcu flavor at link time */ -#define _LGPL_SOURCE - -#ifdef RCU_QSBR -# include "urcu-qsbr.h" -#elif defined(RCU_BP) -# include "urcu-bp.h" -#else -# include "urcu.h" -#endif +/* Remove deprecation warnings from LGPL wrapper build. */ +#define CDS_LFS_RCU_DEPRECATED -#undef _LGPL_SOURCE /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */ +#undef _LGPL_SOURCE #include "urcu/rculfstack.h" +#define _LGPL_SOURCE #include "urcu/static/rculfstack.h" /* @@ -51,9 +44,10 @@ void cds_lfs_init_rcu(struct cds_lfs_stack_rcu *s) _cds_lfs_init_rcu(s); } -void cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s, struct cds_lfs_node_rcu *node) +int cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s, + struct cds_lfs_node_rcu *node) { - _cds_lfs_push_rcu(s, node); + return _cds_lfs_push_rcu(s, node); } struct cds_lfs_node_rcu *cds_lfs_pop_rcu(struct cds_lfs_stack_rcu *s)