Commit f1ec5635 by Loren J. Rittle Committed by Loren J. Rittle

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
parent 96eb1157
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> 2002-01-03 Loren J. Rittle <ljrittle@acm.org>
* Makefile.in ($(LIBG2C):): Let libtool decide when to add -lc. * Makefile.in ($(LIBG2C):): Let libtool decide when to add -lc.
......
...@@ -18,7 +18,11 @@ ...@@ -18,7 +18,11 @@
/* Only use fseeko/ftello if they are both there. */ /* Only use fseeko/ftello if they are both there. */
#if defined (HAVE_FSEEKO) && defined (HAVE_FTELLO) #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 #define FTELL ftello
#else #else
#define FSEEK fseek #define FSEEK fseek
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment