diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2019-02-11 11:38:57 +0100 | 
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2019-02-11 15:49:49 -0200 | 
| commit | c8a65463b20c00b3fd635eb4ca97f3b53927c0f9 (patch) | |
| tree | 1e11fbf6b84f7a9ea2041e116dc634ac190c3f92 /lib/debug.h | |
| parent | be566e4e45aed586716958a1c4adeb00cc352bc0 (diff) | |
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.h | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/debug.h b/lib/debug.h index d0fa27d3fe..2b389e3d4c 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;  };  | 
