Commit 2dc693ee by Bruce Korb Committed by Bruce Korb

Keep HP-UX 11 from stomping on C++ math namespace

From-SVN: r33957
parent e9099386
......@@ -4,6 +4,8 @@
* fixinc/fixincl.c: improve the debug displays, ignore SIGPIPE
* fixinc/server.c: likewise
* fixinc/fixfixes.c( char_macro_def_fix ): fix regex
* fixinc/inclhack.def( hpux11_fabsf ): Keep HP-UX 11 from stomping
on C++ math namespace
2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
......
......@@ -931,6 +931,26 @@ fix = {
/*
* Keep HP-UX 11 from stomping on C++ math namespace
* with defines for fabsf.
*/
fix = {
hackname = hpux11_fabsf;
files = math.h;
select = "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
bypass = "__cplusplus";
c_fix = format;
c_fix_arg = "#ifndef __cplusplus\n%0\n#endif";
test_text =
"#ifdef _PA_RISC\n"
"# define fabsf(x) ((float)fabs((double)(float)(x)))\n"
"#endif";
};
/*
* get rid of bogus inline definitions in HP-UX 8.0
*/
fix = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment