|
Am 28.04.2014 19:10 schröbte Roberto Ierusalimschy:
On 28/04/14 16:44, Roberto Ierusalimschy wrote:(Sorry for the delay.) How can stdio.h not define 'off_t' but define 'fseeko', which uses 'off_t' in its prototype? -- RobertoNot in 10.4 it would seem [1] int fseeko(FILE *, fpos_t, int); [1] http://www.opensource.apple.com/source/Libc/Libc-391/include/stdio.hSo, 10.4 is not POSIX :-(
As long as sys/types.h contains something equivalent to typedef fpos_t off_t; it should be fine. E.g. my Linux stdio.h contains extern int fseeko (FILE *__stream, __off_t __off, int __whence); but the typedef is in the same file, so no problem here. I think the fool-proof POSIX solution would be to include sys/types.h.
-- Roberto
Philipp