Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Change handrolled strftime to strftime in zftp.c



On Mon, 2019-03-25 at 21:13 +0900, Jun T wrote:
> #ifdef OFF_T_IS_64_BIT
>         printf("%s %s\n", output64(sz), mt);
> #else
>         DPUTS(sizeof(sz) > 4, "Shell compiled with wrong off_t size");
>         printf("%ld %s\n", (long)sz, mt);
> #endif
> 
> 
> Should we replace "#ifdef OFF_T_IS_64_BIT" by "#ifndef OFF_T_IS_64_BIT"?

The obvious test would be

#ifdef ZSH_64_BIT_TYPE

which is how we know output64 is defined.  That's used in some other case.

Cheers
pws




Messages sorted by: Reverse Date, Date, Thread, Author