X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/31ac11cc668bb8ecc1317fd2e8bd79b7925bceeb..41d0e2f8f2dc0ec50526ff6e4b8ff12936d1f90e:/src/explain.c
diff --git a/src/explain.c b/src/explain.c
index 1b46d20..0d9c957 100644
--- a/src/explain.c
+++ b/src/explain.c
@@ -1,6 +1,6 @@
/*
* Render C declarations as English.
- * Copyright © 2011 Nick Bowler
+ * Copyright © 2011, 2021 Nick Bowler
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,15 +15,17 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
+
#include
#include
#include
#include
+#include
#include
#include
#include "cdecl.h"
-#include "output.h"
+#include "cdecl-internal.h"
/*
* Renders the start of the thing being declared. If top is true, print
@@ -79,7 +81,7 @@ explain_array(char *buf, size_t n, struct cdecl_array *a)
rc = snprintf(buf, n, "%s", a->vla);
ret += cdecl__advance(&buf, &n, rc);
} else if (a->length) {
- rc = snprintf(buf, n, "%ju", a->length);
+ rc = snprintf(buf, n, "%" PRIuMAX, a->length);
ret += cdecl__advance(&buf, &n, rc);
}