summaryrefslogtreecommitdiffstats
path: root/lib/debug.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2019-02-11 11:38:57 +0100
committerRenato Westphal <renato@opensourcerouting.org>2019-02-11 18:49:49 +0100
commitc8a65463b20c00b3fd635eb4ca97f3b53927c0f9 (patch)
tree1e11fbf6b84f7a9ea2041e116dc634ac190c3f92 /lib/debug.h
parentlib: make union prefixptr C++-compatible (diff)
downloadfrr-c8a65463b20c00b3fd635eb4ca97f3b53927c0f9.tar.xz
frr-c8a65463b20c00b3fd635eb4ca97f3b53927c0f9.zip
lib: make atomic ops C++ compatible
C++ doesn't have ISO C11 stdatomic.h or "_Atomic inttype", so use std::atomic instead to get the headers compatible. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/debug.h')
-rw-r--r--lib/debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/debug.h b/lib/debug.h
index d0fa27d3f..2b389e3d4 100644
--- a/lib/debug.h
+++ b/lib/debug.h
@@ -76,7 +76,7 @@
* Human-readable description of this debugging record.
*/
struct debug {
- _Atomic uint32_t flags;
+ atomic_uint_fast32_t flags;
const char *desc;
};