patch-fixincludes_inclhack_def 715 B

12345678910111213141516
  1. $OpenBSD: patch-fixincludes_inclhack_def,v 1.2 2016/09/01 17:30:33 pascal Exp $
  2. --- fixincludes/inclhack.def.orig Mon Feb 1 21:27:47 2016
  3. +++ fixincludes/inclhack.def Sat Aug 6 19:19:03 2016
  4. @@ -3307,9 +3307,9 @@ fix = {
  5. mach = "*-*-solaris2.*";
  6. files = complex.h;
  7. sed = "/#if[ \t]*!defined(__cplusplus)/c\\\n"
  8. - "#ifdef\t__cplusplus\\\nextern \"C\" {\\\n#endif";
  9. + "#ifdef\t__cplusplus\\\nextern \"C\" {\\\n#endif\\\n";
  10. sed = "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n"
  11. - "#ifdef\t__cplusplus\\\n}\\\n#endif";
  12. + "#ifdef\t__cplusplus\\\n}\\\n#endif\\\n";
  13. test_text = "#if !defined(__cplusplus)\n"
  14. "#endif /* !defined(__cplusplus) */";
  15. };