aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/include/_stdint.h
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2011-01-08 11:47:55 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2011-01-08 11:47:55 +0000
commitd942996bafc6a4297ac42eef1babfc5e78b2867d (patch)
treeb3ae794e20e8dfd11eb0ed255f66db6b6d3a1ac0 /sys/sparc64/include/_stdint.h
parent9858863cd4959006703cb9529d07777637315c69 (diff)
On 32 bit architectures define (u)int64_t as (unsigned) long long instead
of (unsigned) int __attribute__((__mode__(__DI__))). This aligns better with macros such as (U)INT64_C, (U)INT64_MAX, etc. which assume (u)int64_t has type (unsigned) long long. The mode attribute was used because long long wasn't standardised until C99. Nowadays compilers should support long long and use of the mode attribute is discouraged according to GCC Internals documentation. The type definition has to be marked with __extension__ to support compilation with "-std=c89 -pedantic". Discussed with: bde Approved by: kib (mentor)
Notes
Notes: svn path=/head/; revision=217146
Diffstat (limited to 'sys/sparc64/include/_stdint.h')
0 files changed, 0 insertions, 0 deletions