Fix building benchmarks with wxUSE_LIBTIFF == 0
This commit is contained in:
@@ -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()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user