From 3873a78f61969d5f7827cb632d203ef763ce35f4 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 18 Oct 2019 19:22:45 +0200 Subject: [PATCH] Fix building benchmarks with wxUSE_LIBTIFF == 0 --- tests/benchmarks/image.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/benchmarks/image.cpp b/tests/benchmarks/image.cpp index 350cd9f9bc..327a4e4cde 100644 --- a/tests/benchmarks/image.cpp +++ b/tests/benchmarks/image.cpp @@ -43,6 +43,7 @@ BENCHMARK_FUNC(LoadPNG) return image.LoadFile("horse.png"); } +#if wxUSE_LIBTIFF BENCHMARK_FUNC(LoadTIFF) { static bool s_handlerAdded = false; @@ -55,6 +56,7 @@ BENCHMARK_FUNC(LoadTIFF) wxImage image; return image.LoadFile("horse.tif"); } +#endif // wxUSE_LIBTIFF static const wxImage& GetTestImage() {