Commit ea18d30c authored by Martin Sustrik's avatar Martin Sustrik

atomic_ptr fix of Win64

parent 7668e797
......@@ -40,7 +40,7 @@ extern "C" {
#endif
/******************************************************************************/
/* 0MQ versioning supprt. */
/* 0MQ versioning support. */
/******************************************************************************/
ZMQ_EXPORT void zmq_version (int *major, int *minor, int *patch);
......
......@@ -78,7 +78,7 @@ namespace zmq
inline T *xchg (T *val_)
{
#if defined ZMQ_ATOMIC_PTR_WINDOWS
return (T*) InterlockedExchangePointer (&ptr, val_);
return (T*) InterlockedExchangePointer ((PVOID*) &ptr, val_);
#elif defined ZMQ_ATOMIC_PTR_SYSTEM
return (T*) atomic_swap_ptr (&ptr, val_);
#elif defined ZMQ_ATOMIC_PTR_X86
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment