From 9a5260a43f01c542720a10b2242fb1e1cef7cb2e Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Sun, 18 Jan 2015 12:20:23 +0100 Subject: [PATCH] Only simplify Windows's DEBUG_NEW macro on Windows platform --- lib/tokenize.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 906722bcb..bc469fab0 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -1955,6 +1955,9 @@ void Tokenizer::simplifySQL() void Tokenizer::simplifyDebugNew() { + if (!_settings->isWindowsPlatform()) + return; + // convert Microsoft DEBUG_NEW macro to new for (Token *tok = list.front(); tok; tok = tok->next()) { if (tok->str() == "DEBUG_NEW")