]> git.draconx.ca Git - cdecl99.git/blobdiff - src/fix-yytname.awk
libcdecl: Replace uintmax_t with unsigned (long) long.
[cdecl99.git] / src / fix-yytname.awk
index 8a417b32c2d20d3a46adb775574b46b593a35392..4f46871c19c93ccd7f99dd5690dee1ea081fa370 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/awk -f
 #
-# Copyright © 2023 Nick Bowler
+# Copyright © 2023-2024 Nick Bowler
 #
 # Hackjob to improve the horrible yytname array generated by Bison.
 #
@@ -95,7 +95,7 @@ in_table {
 # At the end of the yytname definition, output our replacement function.
 in_table && $0 ~ /^};/ {
   print "#if !defined(UINT_LEAST8_MAX) || !defined(UINT_LEAST16_MAX)";
-  print "#  include <stdint.h>";
+  print "#  include <inttypes.h>";
   print "#endif";
   print "#ifndef assert";
   print "#  include <assert.h>";