mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-16 20:41:18 +08:00
Merge pull request #1300 from moteus/master
Fix. Use C++03 compatible way to align struct. (Build on MSVC)
This commit is contained in:
commit
b6b990f5f9
@ -59,7 +59,8 @@ namespace zmq
|
|||||||
done
|
done
|
||||||
} type;
|
} type;
|
||||||
|
|
||||||
union {
|
union args_t
|
||||||
|
{
|
||||||
|
|
||||||
// Sent to I/O thread to let it know that it should
|
// Sent to I/O thread to let it know that it should
|
||||||
// terminate itself.
|
// terminate itself.
|
||||||
@ -147,7 +148,7 @@ namespace zmq
|
|||||||
|
|
||||||
} args;
|
} 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 ];
|
unsigned char unused[ pad_size ];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user