Bug#689932: Please define sized int{8,16,32,64}_t types portably even for GCC
On Sun, Oct 07, 2012 at 04:52:30PM -0700, Jonathan Nieder wrote:
> Hi Josh,
>
> Josh Triplett wrote:
>
> > However, for compilers that identify themselves as GCC (which includes
> > many non-GCC compilers), sys/types.h does this instead:
> >
> > # define __intN_t(N, MODE) \
> > typedef int int##N##_t __attribute__ ((__mode__ (MODE)))
>
> The condition used is
>
> #if !__GNUC_PREREQ (2, 7)
>
> Which compiler are you using? Is its identifying itself as gcc >= 2.7
> intentional?
c2hs, which uses GCC's preprocessor. And many other non-GCC compilers
identify themselves as GCC as well, because they support a subset of
GCC's extensions.
- Josh Triplett
Reply to:
- Prev by Date:
Bug#689932: Please define sized int{8,16,32,64}_t types portably even for GCC
- Next by Date:
Bug#689932: Please define sized int{8,16,32,64}_t types portably even for GCC
- Previous by thread:
Bug#689932: Please define sized int{8,16,32,64}_t types portably even for GCC
- Next by thread:
Bug#689932: Please define sized int{8,16,32,64}_t types portably even for GCC
- Index(es):