summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gen-as-const.awk3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/gen-as-const.awk b/scripts/gen-as-const.awk
index 20d18c12af..1ffd5f2c1c 100644
--- a/scripts/gen-as-const.awk
+++ b/scripts/gen-as-const.awk
@@ -16,7 +16,8 @@ NF >= 1 && !started {
if (test) {
print "\n#include <inttypes.h>";
print "\n#include <stdio.h>";
- print "\n#if __WORDSIZE__ == 64";
+ print "\n#include <bits/wordsize.h>";
+ print "\n#if __WORDSIZE == 64";
print "\ntypedef uint64_t c_t;";
print "\n#define U(n) UINT64_C (n)";
print "\n#define PRI PRId64";