freeipmi-devel
[Top][All Lists]
Advanced

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

Re: [Freeipmi-devel] stdint.h


From: Dmitry Frolov
Subject: Re: [Freeipmi-devel] stdint.h
Date: Fri, 15 Dec 2006 23:02:05 +0600
User-agent: Mutt/1.5.11

* Dmitry Frolov <address@hidden> [15.12.2006 22:54]:

> * Anand Babu <address@hidden> [15.12.2006 17:31]:
> 
> > On Fri, Dec 15, 2006 at 03:56:08PM +0600, Dmitry Frolov wrote:
> > ,----
> > | I'm sorry guys, that's completely my fault, since I brought
> > | HAVE_STDINT_H into the tree. The better way would be that ugly
> > | construct:
> > | 
> > | #ifdef __FreeBSD__
> > | # include <sys/param.h>
> > | # if __FreeBSD_version >= 500000
> > | #  include <stdint.h>
> > | # else
> > | #  include <inttypes.h>   /* stdint.h predecessor */
> > | # endif
> > | #else
> > | # include <stdint.h>
> > | #endif
> > `----
> > inttypes.h does not exist in FreeBSD any more?
> > Under GNU environment, inttypes.h internally includes stdint.h.
> > inttypes.h defines portable format string macros.
> > 
> > If inttypes.h still exists and always included stdint.h, then a
> > simpler solution would be to replace stdint.h with inttypes.h. It will
> > work for both FreeBSD and GNU environment.
> 
> After some thought, the right thing is to just use stdint.h. I brought
> stdint.h check for the sole purpose to support FreeBSD 4.x, which is not
> possible anymore in 0.3.0 due to missing getpwuid_r() implementation.
> So dropping FBSD 4.x support seems to be natural.

And, yes, inttypes.h also exist here if You want it ;)

I'm still sorry for such an inconvenience I created.

    wbr&w, dmitry.
-- 
Dmitry Frolov <address@hidden>
RISS-Telecom Network, Novosibirsk, Russia
address@hidden, +7 383 2278800, DVF-RIPE




reply via email to

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