2 * Distributed under the Boost Software License, Version 1.0.
3 * (See accompanying file LICENSE_1_0.txt or copy at
4 * http://www.boost.org/LICENSE_1_0.txt)
7 #ifndef MSGPACK_GCC_ATOMIC_H
8 #define MSGPACK_GCC_ATOMIC_H
10 #if defined(__cplusplus)
14 typedef int _msgpack_atomic_counter_t
;
16 int _msgpack_sync_decr_and_fetch(volatile _msgpack_atomic_counter_t
* ptr
);
17 int _msgpack_sync_incr_and_fetch(volatile _msgpack_atomic_counter_t
* ptr
);
20 #if defined(__cplusplus)
25 #endif // MSGPACK_GCC_ATOMIC_H