[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to check type size
From: |
Andreas Schwab |
Subject: |
Re: how to check type size |
Date: |
Sun, 04 Feb 2007 17:54:42 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) |
Andrew Makhorin <address@hidden> writes:
> However, AC_CHECK_SIZEOF does *not* that I need. It defines certain
> macros to be used later during compilation
You can also use AC_COMPUTE_INT to set a shell variable.
> while I want the configure script just to raise an error if some types
> have unexpected sizes, for example, if 'int' is not of 4 bytes long.
If you want fixed sized type you should use the ones from <stdint.h>.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."