From 266c722fafc54178f854179003260053b11d00a3 Mon Sep 17 00:00:00 2001 From: "Daniel Richard G." Date: Mon, 16 Feb 2015 15:19:20 +0000 Subject: Daniel Richard G. Daniel Richard G. PR bootstrap/48009 PR bootstrap/53348 * inclhack.def (aix_strtof_const): New fix. * fixincl.x: Regenerate. * tests/base/inttypes.h: New test. From-SVN: r220736 --- fixincludes/inclhack.def | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'fixincludes/inclhack.def') diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index ce9a2ca6b4c..5e906f4c1ac 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -841,6 +841,18 @@ fix = { "#define UINT16_C(c) __CONCAT__(c,U)"; }; +/* + * stdlib.h on AIX 4.3 declares strtof() with a non-const first argument. + */ +fix = { + hackname = aix_strtof_const; + files = stdlib.h; + select = "((extern[ \t]+)?float[ \t]+strtof)\\(char \\*, char \\*\\*\\);"; + c_fix = format; + c_fix_arg = "%1(const char *, char **);"; + test_text = "extern float strtof(char *, char **);"; +}; + /* * sys/machine.h on AIX 4.3.3 puts whitespace between a \ and a newline * in an otherwise harmless (and #ifed out) macro definition -- cgit v1.2.3