diff options
author | Even Rouault <even.rouault@spatialys.com> | 2021-09-01 18:54:17 +0200 |
---|---|---|
committer | Even Rouault <even.rouault@spatialys.com> | 2021-09-01 18:54:17 +0200 |
commit | 788c5f24faeca98695bd9844650a9a59b3198050 (patch) | |
tree | 901cc084327834418eab2d53764b06ea60b52b1a | |
parent | 8f2a2068ba34f5d7aa63806c44e642a4b6b5952b (diff) | |
download | libtiff-git-788c5f24faeca98695bd9844650a9a59b3198050.tar.gz |
test_directory.c: fix compiler warnings
-rw-r--r-- | test/test_directory.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/test_directory.c b/test/test_directory.c index 9b617104..cd3987ec 100644 --- a/test/test_directory.c +++ b/test/test_directory.c @@ -19,11 +19,17 @@ * */ +#include "tif_config.h" + #include <stdio.h> #include <stdbool.h> #include "tiffio.h" +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#endif + #define SPP 3 /* Samples per pixel */ #define N_DIRECTORIES 10 /* Number of directories to write */ const uint16_t width = 1; @@ -200,7 +206,8 @@ int test_lastdir_offset(bool is_big_tiff) { } for (i = 0; i < N_DIRECTORIES; i++) { if (offsets_optimized[i] != offsets_non_optimized[i]) { - fprintf(stderr, "Unexpected directory offset for directory %i, expected offset %lli but got %lli.\n", i, + fprintf(stderr, "Unexpected directory offset for directory %i, expected offset %"PRIu64" but got %"PRIu64".\n", + i, offsets_non_optimized[i], offsets_optimized[i]); goto failure; } |