On Monday, 11 September 2017 4:23 AM +0200, Magnus Holmgren wrote: > Well, except that CHAR_BIT requires limits.h and there need to be parentheses > around the expression.
Perhaps I'm missing something, but the substitution does have parentheses around the expression. You're right about needing limits.h though. sed -i 's/\(\# define GMP_NUMB_BITS\).*/\1 \(__SIZEOF_LONG__ \* CHAR_BIT\)/' $(CURDIR)/version.h # define GMP_NUMB_BITS 64 --> # define GMP_NUMB_BITS (__SIZEOF_LONG__ * CHAR_BIT) -- Hugh McMaster