[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: misc datatypes
From: |
BORBELY Zoltan |
Subject: |
Re: misc datatypes |
Date: |
Tue, 29 Apr 2003 10:31:26 +0200 |
User-agent: |
Mutt/1.4i |
Hi,
On Tue, Apr 29, 2003 at 11:03:33AM +0300, Panagiotis Astithas wrote:
> >The datatypes in the subject are:
> > - uint8_t
> > - struct timeval
> >
> >For Linux they are:
> >uint8_t -> <stdint.h> (defined as unsigned char)
> >struct timeval -> <sys/time.h>
> >
> In FreeBSD 4.8-STABLE you have:
> - uint8_t declared in <inttypes.h> (it is an unsigned char)
> - struct timeval in <sys/time.h>
OpenBSD 3.0 (quite old)
- uint8_t unsigned char in <inttypes.h> (<sys/types.h> too)
- struct timeval in <sys/time.h>
Solaris 9/SPARC
- uint8_t unsigned char in <inttypes.h> (<sys/types.h> too)
- struct timeval in <sys/time.h>
All of these systems define the uint8_t in a separate low level header
file. This header is included from different places (e.g. <sys/types.h>).
Linux has a separate <inttypes.h> too, but its contents is quite
different. Some users reported compilation problems on FreeBSD and
OpenBSD platform caused by the double typedef. I added the <inttypes.h>
check to configure and include to the compat.h header. uint8_t will be
defined _only_ if there's no <stdint.h> (Linux has) and <inttypes.h>
(OpenBSD, FreeBSD, Solaris, Linux have).
Bye,
Bozo