On 21-03-2011 09:04:24 -0400, Mike Frysinger wrote:
> ftell vs ftello is a bit weirder.  i'd say always call ftello() all
> the time and let the off_t types worry about 32 bit vs 64 bit.  so in
> the configure script. do something like:
> AC_CHECK_FUNCS([ftello fseeko])

FYI:
There is an AC_FUNC_FSEEKO macro, that is designed to deal with this
specifically, in case more is necessary.

> then in the header:
> #ifdef HAVE_FTELLO
> #define ftell(a) ftello(a)
> #endif
> #ifdef HAVE_FSEEKO
> #define fseek(a,b,c) fseeko(a,b,c)
> #endif
> 
> and again, this should work for all targets, not just linux


-- 
Fabian Groffen
Gentoo on a different level

Reply via email to