aix4.3 math.h header broken for cabs
Bruce Korb
bkorb@sco.COM
Mon May 1 14:39:00 GMT 2000
Benjamin Kosnik wrote:
> This hunk seems to work correctly, thanks zack:
>
> /*
> * Fix cabs declarations in math.h on AIX.
> */
> fix = {
> hackname = aix_cabs;
> files = "math.h";
> select = 'double cabs';
> sed = '/extern double cabs();/d';
> sed = '/extern double cabs(struct dbl_hypot);/d';
> };
I will apply this as:
> /*
> * Remove `extern double cabs' declarations from math.h.
> * This conflicts with C9x. Discovered on AIX.
> */
> fix = {
> hackname = broken_cabs;
> files = "math.h";
> select = '^extern double cabs';
> sed = '/^extern double cabs();/d';
> sed = '/^extern double cabs(struct dbl_hypot);/d';
> };
The difference being that this is no longer constrained to AIX.
Also, do we need the two versions of the deletion, or does
this work too:
> sed = '/extern double cabs(/d';
More information about the Gcc-patches
mailing list