mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 02:09:59 +00:00
cpp: fixes problem that InterlockedIncrement/Decrement are not found on _WIN32 platform
This commit is contained in:
parent
67ab510b5d
commit
0d5708a01d
4 changed files with 9 additions and 4 deletions
|
|
@ -38,6 +38,7 @@ typedef unsigned __int64 uint64_t;
|
|||
|
||||
|
||||
#ifdef _WIN32
|
||||
#define _msgpack_atomic_counter_header <windows.h>
|
||||
typedef long _msgpack_atomic_counter_t;
|
||||
#define _msgpack_sync_decr_and_fetch(ptr) InterlockedDecrement(ptr)
|
||||
#define _msgpack_sync_incr_and_fetch(ptr) InterlockedIncrement(ptr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue