Compare commits

...

2 Commits

Author SHA1 Message Date
Mark Andrews
ad1796a132 promote atomic_int_fast32_t 2018-07-11 12:28:01 -07:00
Mark Andrews
179625f93a Include <atomic> instead of <stdatomic.h> when compiling C++ code which calls libraries from BIND. 2018-07-11 12:28:01 -07:00
3 changed files with 14 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
4997. [port] Include <atomic> instead of <stdatomic.h> when
compiling C++ code which calls libraries from BIND.
[GL #344]
4996. [bug] dig: Handle malformed ednsopt options. [GL #403]
4995. [test] Add tests for "tcp-self" update policy. [GL !282]

View File

@@ -22,8 +22,13 @@
#include <isc/types.h>
#if defined(ISC_PLATFORM_HAVESTDATOMIC)
#ifdef __cplusplus
#include <atomic>
using std::atomic_int_fast32_t;
#else
#include <stdatomic.h>
#endif
#endif
/*! \file isc/refcount.h
* \brief Implements a locked reference counter.

View File

@@ -22,8 +22,13 @@
#if defined(ISC_PLATFORM_HAVESTDATOMIC)
#include <stdint.h>
#ifdef __cplusplus
#include <atomic>
using std::atomic_int_fast32_t;
#else
#include <stdatomic.h>
#endif
#endif
ISC_LANG_BEGINDECLS