bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] Re: gnulib module for uintmax_t? (and best practice que


From: Bruno Haible
Subject: Re: [Bug-gnulib] Re: gnulib module for uintmax_t? (and best practice questions)
Date: Mon, 25 Oct 2004 23:22:29 +0200
User-agent: KMail/1.5

Paul Eggert wrote:
> "configure" could put its stdint.h additions into config.h as
> macros.  ...  This approach is simpler and I think more reliable

Indeed this is much more robust, but to get everything defined for
emulating a full stdint.h, you often not only have to #include the system's
<stdint.h>, but also <stddef.h>, <limits.h>, <sys/inttypes.h> or <inttypes.h>.

The config.h would then have to include system header files. That's a thing
that I absolutely try to avoid, because
  1) on AIX 3, no other system include files are allowed before our <alloca.h>,
  2) with GCC up to ca. 3.0, you get an error if you make a global register
     declaration after having #included some system header files which happen
     to define inline functions. (Global register declarations are used by
     GNU clisp.)

Bruno





reply via email to

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