mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
When __GNUC__ is not defined, use __VA_ARGS__.
svn:r1312
This commit is contained in:
parent
9d0f6eb4e2
commit
0ec290be04
@ -1,6 +1,7 @@
|
||||
Changes in 1.4.12-stable:
|
||||
o Try to contain degree of failure when running on a win32 version so heavily firewalled that we can't fake a socketpair.
|
||||
o Fix an obscure timing-dependent, allocator-dependent crash in the evdns code.
|
||||
o Use __VA_ARGS__ syntax for varargs macros in event_rpcgen when compiler is not GCC.
|
||||
|
||||
Changes in 1.4.11-stable:
|
||||
o Fix a bug when removing a timeout from the heap. [Patch from Marko Kreen]
|
||||
|
@ -1318,10 +1318,17 @@ def HeaderPreamble(name):
|
||||
|
||||
pre += (
|
||||
'#define EVTAG_HAS(msg, member) ((msg)->member##_set == 1)\n'
|
||||
'#ifdef __GNUC__\n'
|
||||
'#define EVTAG_ASSIGN(msg, member, args...) '
|
||||
'(*(msg)->base->member##_assign)(msg, ## args)\n'
|
||||
'#define EVTAG_GET(msg, member, args...) '
|
||||
'(*(msg)->base->member##_get)(msg, ## args)\n'
|
||||
'#else\n'
|
||||
'#define EVTAG_ASSIGN(msg, member, ...) '
|
||||
'(*(msg)->base->member##_assign)(msg, ## __VA_ARGS__)\n'
|
||||
'#define EVTAG_GET(msg, member, ...) '
|
||||
'(*(msg)->base->member##_get)(msg, ## __VA_ARGS__)\n'
|
||||
'#endif\n'
|
||||
'#define EVTAG_ADD(msg, member) (*(msg)->base->member##_add)(msg)\n'
|
||||
'#define EVTAG_LEN(msg, member) ((msg)->member##_length)\n'
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user