| 1 | /* |
| 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) |
| 5 | */ |
| 6 | |
| 7 | #ifndef MSGPACK_GCC_ATOMIC_H |
| 8 | #define MSGPACK_GCC_ATOMIC_H |
| 9 | |
| 10 | #if defined(__cplusplus) |
| 11 | extern "C" { |
| 12 | #endif |
| 13 | |
| 14 | typedef int _msgpack_atomic_counter_t; |
| 15 | |
| 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); |
| 18 | |
| 19 | |
| 20 | #if defined(__cplusplus) |
| 21 | } |
| 22 | #endif |
| 23 | |
| 24 | |
| 25 | #endif // MSGPACK_GCC_ATOMIC_H |