]> xenbits.xensource.com Git - xtf.git/commit
common: Move {BITS,BYTES}_PER_LONG into limits.h
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 17 Aug 2021 20:55:01 +0000 (21:55 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 17 Aug 2021 21:01:32 +0000 (22:01 +0100)
commitfc32c40a97069d4696fb7aa9cb76e3ae09aa18dd
tree02dec2559c9cd70a494de62362dffed6d7806938
parent6d8000aeadb222282c96567022a623f770348989
common: Move {BITS,BYTES}_PER_LONG into limits.h

We're already using compiler-provided __*_TYPE__ macros, so instead of basing
BYTES_PER_LONG on __i386__ or __x86_64__, just use __SIZEOF_LONG__ directly.

This form doesn't require editing to add different architectures.

Add some build assertions that we have a half-way sane compile environment.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
common/setup.c
include/limits.h
include/xtf/lib.h