fio.h (FSEEK): Enforce type of second parameter to be off_t when...

* libI77/fio.h (FSEEK): Enforce type of second parameter to be
	off_t when prototype is missing from system headers for the
	non-standard function.

From-SVN: r48546
This commit is contained in:
Loren J. Rittle 2002-01-04 22:24:07 +00:00 committed by Loren J. Rittle
parent 96eb115797
commit f1ec563538
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-01-04 Loren J. Rittle <ljrittle@acm.org>
* libI77/fio.h (FSEEK): Enforce type of second parameter to be
off_t when prototype is missing from system headers for the
non-standard function.
2002-01-03 Loren J. Rittle <ljrittle@acm.org>
* Makefile.in ($(LIBG2C):): Let libtool decide when to add -lc.

View File

@ -18,7 +18,11 @@
/* Only use fseeko/ftello if they are both there. */
#if defined (HAVE_FSEEKO) && defined (HAVE_FTELLO)
#define FSEEK fseeko
/* The cast helps in any case where the fseeko() prototype is somehow missing
(perhaps because _POSIX_SOURCE is defined and the system headers try
to keep a clean namespace in that case) even though the autoconf test
found the non-standard function via its trivial link test. */
#define FSEEK(a,b,c) fseeko(a, (off_t) b, c)
#define FTELL ftello
#else
#define FSEEK fseek