Fix: Use proper macro to detect stdbool.h
[urcu.git] / rculfstack.c
index 2c260460b690ee85e9f688a372feae56a1b5889d..df5c54703820461766b6cc18bf7f961812cad8b7 100644 (file)
  * 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 */
-#include "urcu.h"
+/* Remove deprecation warnings from LGPL wrapper build. */
+#define CDS_LFS_RCU_DEPRECATED
+
 /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
+#undef _LGPL_SOURCE
 #include "urcu/rculfstack.h"
-#include "urcu/rculfstack-static.h"
+#define _LGPL_SOURCE
+#include "urcu/static/rculfstack.h"
 
 /*
  * library wrappers to be used by non-LGPL compatible source code.
@@ -41,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)
This page took 0.022945 seconds and 4 git commands to generate.