Commit 57cb34f1 authored by Alexey Melnichuk's avatar Alexey Melnichuk

Fix. Use C++03 compatible way to align struct. (Build on MSVC)

#1299 break compiling with MSVC 2010.
parent 3503fdad
......@@ -59,7 +59,8 @@ namespace zmq
done
} type;
union {
union args_t
{
// Sent to I/O thread to let it know that it should
// terminate itself.
......@@ -147,7 +148,7 @@ namespace zmq
} args;
enum { pad_size = 64 - (sizeof(destination) + sizeof(args)) };
enum { pad_size = 64 - (sizeof(zmq::object_t*) + sizeof(args_t) + sizeof(type_t)) };
unsigned char unused[ pad_size ];
};
......
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