From a8921afcd759c9fe8abc95349040782593652d14 Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Fri, 21 May 2010 09:49:57 +0200 Subject: [PATCH] Fixed #1698 (Add define support to GUI) --- lib/preprocessor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp index 304ebca57..91cac32d8 100644 --- a/lib/preprocessor.cpp +++ b/lib/preprocessor.cpp @@ -621,7 +621,8 @@ void Preprocessor::preprocess(std::istream &srcCodeStream, std::string &processe processedFile = replaceIfDefined(processedFile); // Get all possible configurations.. - resultConfigurations = getcfgs(processedFile, filename); + if (!_settings || (_settings && _settings->userDefines.empty())) + resultConfigurations = getcfgs(processedFile, filename); }