Only simplify Windows's DEBUG_NEW macro on Windows platform

This commit is contained in:
Thomas Jarosch 2015-01-18 12:20:23 +01:00
parent cd4c297dce
commit 9a5260a43f
1 changed files with 3 additions and 0 deletions

View File

@ -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")