aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--modules/benchmark/benches.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fc78df39..67cb03c7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -170,7 +170,6 @@ set(MODULE_benchmark_SOURCES_GTKANY
modules/benchmark/blowfish.c
modules/benchmark/blowfish2.c
modules/benchmark/cryptohash.c
- modules/benchmark/drawing.c
modules/benchmark/fbench.c
modules/benchmark/fftbench.c
modules/benchmark/fft.c
@@ -182,6 +181,7 @@ set(MODULE_benchmark_SOURCES_GTKANY
modules/benchmark/zlib.c
)
set(MODULE_benchmark_SOURCES_GTK2
+ modules/benchmark/drawing.c
modules/benchmark/guibench.c
)
if (HARDINFO_GTK3)
diff --git a/modules/benchmark/benches.c b/modules/benchmark/benches.c
index 2cb8ee9c..6343d95b 100644
--- a/modules/benchmark/benches.c
+++ b/modules/benchmark/benches.c
@@ -54,6 +54,7 @@ BENCH_SCAN_SIMPLE(scan_cryptohash, benchmark_cryptohash, BENCHMARK_CRYPTOHASH);
BENCH_SCAN_SIMPLE(scan_fib, benchmark_fib, BENCHMARK_FIB);
BENCH_SCAN_SIMPLE(scan_zlib, benchmark_zlib, BENCHMARK_ZLIB);
+#if !GTK_CHECK_VERSION(3,0,0)
void scan_gui(gboolean reload)
{
SCAN_START();
@@ -73,6 +74,7 @@ void scan_gui(gboolean reload)
}
SCAN_END();
}
+#endif
static ModuleEntry entries[] = {
{N_("CPU Blowfish (Single-thread)"), "blowfish.png", callback_bfsh_single, scan_bfsh_single, MODULE_FLAG_NONE},