1
0
Fork 0
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:
mostang.com!davidm 2004-04-28 01:24:34 +00:00
parent 2d4190ece4
commit c5c4fc991c

View file

@ -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)))