#include <config.h>
#include <stdio.h>
-#include <stdlib.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (ftell, long, (FILE *));
#include "binary-io.h"
+#include "macros.h"
-#define ASSERT(expr) \
- do \
- { \
- if (!(expr)) \
- { \
- fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
- fflush (stderr); \
- abort (); \
- } \
- } \
- while (0)
+/* None of the files accessed by this test are large, so disable the
+ fseek link warning if we are not using the gnulib fseek module. */
+#if !GNULIB_FSEEK
+# undef fseek
+#endif
#ifndef FUNC_UNGETC_BROKEN
# define FUNC_UNGETC_BROKEN 0