Fix: x86 and s390 uatomic: __hp() macro warning with gcc 11
[urcu.git] / include / urcu / urcu.h
CommitLineData
4477a870
MD
1#ifndef _URCU_H
2#define _URCU_H
90075a50
MD
3
4/*
4477a870 5 * urcu.h
90075a50 6 *
4477a870 7 * Userspace RCU header
90075a50 8 *
6982d6d7 9 * Copyright (c) 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
90075a50
MD
10 * Copyright (c) 2009 Paul E. McKenney, IBM Corporation.
11 *
12 * LGPL-compatible code should include this header with :
13 *
14 * #define _LGPL_SOURCE
4477a870 15 * #include <urcu.h>
90075a50
MD
16 *
17 * This library is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU Lesser General Public
19 * License as published by the Free Software Foundation; either
20 * version 2.1 of the License, or (at your option) any later version.
21 *
22 * This library is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25 * Lesser General Public License for more details.
26 *
27 * You should have received a copy of the GNU Lesser General Public
28 * License along with this library; if not, write to the Free Software
29 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
67ecffc0 30 *
4477a870 31 * IBM's contributions to this file may be relicensed under LGPLv2 or later.
90075a50
MD
32 */
33
4477a870
MD
34#if !defined(RCU_MEMBARRIER) && !defined(RCU_SIGNAL) && !defined(RCU_MB)
35#define RCU_MEMBARRIER
36#endif
90075a50 37
4477a870
MD
38#ifdef RCU_MEMBARRIER
39#include <urcu/urcu-memb.h>
40#elif defined(RCU_SIGNAL)
41#include <urcu/urcu-signal.h>
42#elif defined(RCU_MB)
43#include <urcu/urcu-mb.h>
44#else
45#error "Unknown urcu flavor"
36bc70a8
MD
46#endif
47
4477a870 48#endif /* _URCU_H */
This page took 0.051879 seconds and 4 git commands to generate.