1 |
On 21-03-2011 09:04:24 -0400, Mike Frysinger wrote: |
2 |
> ftell vs ftello is a bit weirder. i'd say always call ftello() all |
3 |
> the time and let the off_t types worry about 32 bit vs 64 bit. so in |
4 |
> the configure script. do something like: |
5 |
> AC_CHECK_FUNCS([ftello fseeko]) |
6 |
|
7 |
FYI: |
8 |
There is an AC_FUNC_FSEEKO macro, that is designed to deal with this |
9 |
specifically, in case more is necessary. |
10 |
|
11 |
> then in the header: |
12 |
> #ifdef HAVE_FTELLO |
13 |
> #define ftell(a) ftello(a) |
14 |
> #endif |
15 |
> #ifdef HAVE_FSEEKO |
16 |
> #define fseek(a,b,c) fseeko(a,b,c) |
17 |
> #endif |
18 |
> |
19 |
> and again, this should work for all targets, not just linux |
20 |
|
21 |
|
22 |
-- |
23 |
Fabian Groffen |
24 |
Gentoo on a different level |