1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Fix 64-bit platform handling in test cases for generated headers with constants.

This commit is contained in:
Ulrich Drepper
2009-08-16 00:39:43 -07:00
parent 85fda49b96
commit 677760a307
2 changed files with 8 additions and 3 deletions

View File

@ -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";