+2007-04-26 Bruno Haible <bruno@clisp.org>
+
+ * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
+ 'long' when we assume it.
+ Suggested by Eric Blake.
+
2007-04-26 Bruno Haible <bruno@clisp.org>
Ensure fseeko, ftello are declared on glibc systems.
#include <stdarg.h>
#include <stddef.h>
-#if @GNULIB_FFLUSH@ && @REPLACE_FFLUSH@
+#if (@GNULIB_FFLUSH@ && @REPLACE_FFLUSH@) || (@GNULIB_FSEEKO@ && !@HAVE_FSEEKO@) || (@GNULIB_FTELLO@ && !@HAVE_FTELLO@)
/* Get off_t. */
# include <sys/types.h>
#endif
#elif @GNULIB_FSEEKO@
# if !@HAVE_FSEEKO@
/* Assume 'off_t' is the same type as 'long'. */
+typedef int verify_fseeko_types[2 * (sizeof (off_t) == sizeof (long)) - 1];
# define fseeko fseek
# endif
#else
#if @GNULIB_FTELLO@
# if !@HAVE_FTELLO@
/* Assume 'off_t' is the same type as 'long'. */
+typedef int verify_ftello_types[2 * (sizeof (off_t) == sizeof (long)) - 1];
# define ftello ftell
# endif
#else