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() {