mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-01 18:57:38 +01:00
(_U_dyn_op): Avoid the use of C99-style initializers in installed
header-files. Doing so may cause problems with C++ or older C compilers. Reported by Todd Miller. (Logical change 1.216)
This commit is contained in:
parent
2d4190ece4
commit
c5c4fc991c
1 changed files with 2 additions and 8 deletions
|
@ -193,14 +193,8 @@ extern void _U_dyn_cancel (unw_dyn_info_t *);
|
||||||
|
|
||||||
/* Convenience routines. */
|
/* Convenience routines. */
|
||||||
|
|
||||||
#define _U_dyn_op(_t, _q, _w, _r, _v) \
|
#define _U_dyn_op(_tag, _qp, _when, _reg, _val) \
|
||||||
((unw_dyn_op_t) { \
|
((unw_dyn_op_t) { (_tag), (_qp), (_reg), (_when), (_val) })
|
||||||
.tag = (_t), \
|
|
||||||
.qp = (_q), \
|
|
||||||
.when = (_w), \
|
|
||||||
.reg = (_r), \
|
|
||||||
.val = (_v) \
|
|
||||||
})
|
|
||||||
|
|
||||||
#define _U_dyn_op_save_reg(op, qp, when, reg, dst) \
|
#define _U_dyn_op_save_reg(op, qp, when, reg, dst) \
|
||||||
(*(op) = _U_dyn_op (UNW_DYN_SAVE_REG, (qp), (when), (reg), (dst)))
|
(*(op) = _U_dyn_op (UNW_DYN_SAVE_REG, (qp), (when), (reg), (dst)))
|
||||||
|
|
Loading…
Reference in a new issue