diff --git a/include/msgpack/sysdep.h b/include/msgpack/sysdep.h index 62026530..e8c0d9a8 100644 --- a/include/msgpack/sysdep.h +++ b/include/msgpack/sysdep.h @@ -45,6 +45,9 @@ #ifdef _WIN32 # define _msgpack_atomic_counter_header +# if !defined(WIN32_LEAN_AND_MEAN) +# define WIN32_LEAN_AND_MEAN +# endif /* WIN32_LEAN_AND_MEAN */ typedef long _msgpack_atomic_counter_t; # define _msgpack_sync_decr_and_fetch(ptr) InterlockedDecrement(ptr) # define _msgpack_sync_incr_and_fetch(ptr) InterlockedIncrement(ptr)