Fix building benchmarks with wxUSE_LIBTIFF == 0

This commit is contained in:
Artur Wieczorek
2019-10-18 19:22:45 +02:00
parent 2b331a9463
commit 3873a78f61

View File

@@ -43,6 +43,7 @@ BENCHMARK_FUNC(LoadPNG)
return image.LoadFile("horse.png"); return image.LoadFile("horse.png");
} }
#if wxUSE_LIBTIFF
BENCHMARK_FUNC(LoadTIFF) BENCHMARK_FUNC(LoadTIFF)
{ {
static bool s_handlerAdded = false; static bool s_handlerAdded = false;
@@ -55,6 +56,7 @@ BENCHMARK_FUNC(LoadTIFF)
wxImage image; wxImage image;
return image.LoadFile("horse.tif"); return image.LoadFile("horse.tif");
} }
#endif // wxUSE_LIBTIFF
static const wxImage& GetTestImage() static const wxImage& GetTestImage()
{ {