mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-27 15:27:58 +00:00
Problem: MS VC++ build broken
Solution: try to detect architecture if building with VC++ and hardcode pointer size accordingly. Expressions are not allowed inside declspec intrinsics, which includes other intrinsics.
This commit is contained in:
parent
a077adb4a0
commit
f2de03a480
@ -214,8 +214,10 @@ typedef struct zmq_msg_t {
|
|||||||
(defined (__SUNPRO_C) && __SUNPRO_C >= 0x590) || \
|
(defined (__SUNPRO_C) && __SUNPRO_C >= 0x590) || \
|
||||||
(defined (__SUNPRO_CC) && __SUNPRO_CC >= 0x590)
|
(defined (__SUNPRO_CC) && __SUNPRO_CC >= 0x590)
|
||||||
unsigned char _ [64] __attribute__ ((aligned (sizeof (void *))));
|
unsigned char _ [64] __attribute__ ((aligned (sizeof (void *))));
|
||||||
#elif defined(_MSC_VER)
|
#elif defined (_MSC_VER) && (defined (_M_X64) || defined (_M_ARM64))
|
||||||
__declspec (align (sizeof (void *))) unsigned char _ [64];
|
__declspec (align (8)) unsigned char _ [64];
|
||||||
|
#elif defined (_MSC_VER) && (defined (_M_IX86) || defined (_M_ARM_ARMV7VE))
|
||||||
|
__declspec (align (4)) unsigned char _ [64];
|
||||||
#else
|
#else
|
||||||
unsigned char _ [64];
|
unsigned char _ [64];
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user