autoconf
[Top][All Lists]
Advanced

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

Re: determine base type of a typedef


From: Vivien Kraus
Subject: Re: determine base type of a typedef
Date: Fri, 23 Oct 2020 09:00:38 +0200
User-agent: Evolution 3.34.2

Hello Anatoli,

Le jeudi 22 octobre 2020 à 19:23 -0300, Anatoli a écrit :
> #if (AC_TYPE(time_t) == "long long int")
> #define TIME_T_FMT "%lld"
> #elif (AC_TYPE(time_t) == "long int")
> #define TIME_T_FMT "%ld"
> #else
> #error dont know what to use for TIME_T_FMT
> #endif

Is it not possible to always use "%lld" and always convert the
arguments to (long long int)?

Best regards,

divoplade




reply via email to

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