about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-08-16 00:39:43 -0700
committerUlrich Drepper <drepper@redhat.com>2009-08-16 00:39:43 -0700
commit677760a3076884bd6496e3676b1102db400f79d6 (patch)
treebe1b26d8b414124f9bf20892e841e666ed2521d0 /scripts
parent85fda49b9674152ca54d49e0028f981566f2554d (diff)
downloadglibc-677760a3076884bd6496e3676b1102db400f79d6.tar.gz
glibc-677760a3076884bd6496e3676b1102db400f79d6.tar.xz
glibc-677760a3076884bd6496e3676b1102db400f79d6.zip
Fix 64-bit platform handling in test cases for generated headers with constants.
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";