Hello, * Tristan Gingold wrote on Mon, May 16, 2011 at 03:20:19PM CEST: > Ok for trunk ?
FWIW this looks good to me, and certainly necessary for Posix and portable sed, but I can't approve it. Thanks, Ralf > fixincludes/ > 2011-05-16 Tristan Gingold <[email protected]> > > * inclhack.def (solaris_complex_cxx): Fix syntax. > * fixincl.x: Regenerate. > > diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def > index ac8f795..a20ab9d 100644 > --- a/fixincludes/inclhack.def > +++ b/fixincludes/inclhack.def > @@ -3315,9 +3315,9 @@ fix = { > hackname = solaris_complex_cxx; > mach = "*-*-solaris2.*"; > files = complex.h; > - sed = "/#if[ \t]*!defined(__cplusplus)/c" > + sed = "/#if[ \t]*!defined(__cplusplus)/c\\\n" > "#ifdef\t__cplusplus\\\nextern \"C\" {\\\n#endif"; > - sed = "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c" > + sed = "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n" > "#ifdef\t__cplusplus\\\n}\\\n#endif"; > test_text = "#if !defined(__cplusplus)\n" > "#endif /* !defined(__cplusplus) */"; >
