autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: typedef signed short int16;


From: Simon Waters
Subject: Re: typedef signed short int16;
Date: Thu, 20 Mar 2003 16:04:21 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lucas Nussbaum wrote:
>
> What's the autoconf way of knowing with type is a 16 bits signed int,
> etc ?

I'm no autoconf expert, but uint16_t uint32_t, int16_t and int32_t are
all defined in stdint.h AFAIK.

The macro from the archive AC_CREATE_STDINT_H will ensure that stdint.h
is included, or attempt to create a relevant header file to define them
for you if the system has no stdint.h.

AC_CREATE_STDINT_H(src/sysconf.h)

Of course that might not resolve all your issues with portability as it
doesn't guarantee representation.

 Simon, who uses lots of 64 bit unsigned integers
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+eeaDGFXfHI9FVgYRAu/TAJ9iFe0PPWkhZhtDD9IdqUBl4EZdHACffpP9
ou1kVqNPYu9+Ch2tJ80EvXw=
=HzwR
-----END PGP SIGNATURE-----






reply via email to

[Prev in Thread] Current Thread [Next in Thread]