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

Bug#689932: Please define sized int{8,16,32,64}_t types portably even for GCC



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?

Thanks,
Jonathan


Reply to: