From 17e490251969a9f7b6b16c184193adc2cb02bc19 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Thu, 5 Sep 2019 20:40:47 +0800 Subject: [PATCH] Don't define variable when not building GUI --- src/app/application.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/application.cpp b/src/app/application.cpp index cb2204784..f065cb72e 100644 --- a/src/app/application.cpp +++ b/src/app/application.cpp @@ -121,7 +121,9 @@ namespace const int MAX_FILELOG_SIZE = 1000 * 1024 * 1024; // 1000MiB const int DEFAULT_FILELOG_SIZE = 65 * 1024; // 65KiB +#if !defined(DISABLE_GUI) const int PIXMAP_CACHE_SIZE = 64 * 1024 * 1024; // 64MiB +#endif } Application::Application(const QString &id, int &argc, char **argv)