aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/inclhack.def
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2020-01-25 12:20:24 -0500
committerJohn David Anglin <danglin@gcc.gnu.org>2020-01-25 12:20:24 -0500
commit10be08aa276916b4dc286abc269ed0a175f033dd (patch)
tree7ba57f5f7d61597d32af25e08dfcd1ce157390b0 /fixincludes/inclhack.def
parent98dd8c97e44ee8134cecf681045b715a8a73c7cd (diff)
downloadgcc-10be08aa276916b4dc286abc269ed0a175f033dd.zip
gcc-10be08aa276916b4dc286abc269ed0a175f033dd.tar.gz
gcc-10be08aa276916b4dc286abc269ed0a175f033dd.tar.bz2
Fix missing SCNuMAX defines in inttypes.h on hpux11.[01]*
2020-01-25 John David Anglin <danglin@gcc.gnu.org> * inclhack.def (hpux_c99_inttypes4): New, add missing SCNuMAX defines. * fixincl.x: Regenerate. * tests/base/inttypes.h: Update for above fix.
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r--fixincludes/inclhack.def15
1 files changed, 15 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index bf136fd..f58e777 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -2614,6 +2614,21 @@ fix = {
};
/*
+ * Fix missing SCNuMAX defines in inttypes.h
+ */
+fix = {
+ hackname = hpux_c99_inttypes4;
+ mach = "hppa*-hp-hpux11.[01]*";
+ files = inttypes.h;
+ sed = "/^[ \t]*#[ \t]*define[ \t]*SCNxMAX[ \t]*SCNx64/a\\\n"
+ "#define SCNuMAX \t SCNu64\n";
+ sed = "/^[ \t]*#[ \t]*define[ \t]*SCNxMAX[ \t]*SCNx32/a\\\n"
+ "#define SCNuMAX \t SCNu32\n";
+ test_text = "#define SCNxMAX SCNx64\n"
+ "#define SCNxMAX SCNx32\n";
+};
+
+/*
* Fix hpux broken ctype macros
*/
fix = {