mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 02:42:58 +01:00
Fix. Use C++03 compatible way to align struct. (Build on MSVC)
#1299 break compiling with MSVC 2010.
This commit is contained in:
parent
3503fdad33
commit
57cb34f123
@ -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 ];
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user