From e1a70ce495928e8d81e80b11d7dbd4c4913ee438 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 6 Dec 2016 17:54:47 -0800 Subject: moc: force the Microsoft compiler not to define _MSC_EXTENSIONS This re-fixes commit d72ac3f35f4c6d6405e9675d54124b3ddb8d80ab, which simply removed the #define but did so at the wrong place. Instead of forcing the macro to be removed, let's simply not have it defined in the first place. Change-Id: Ie6dbad9bbbd9488887e8fffd148dd67d9a31b32e Reviewed-by: Jake Petroules --- src/tools/moc/main.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/tools/moc') diff --git a/src/tools/moc/main.cpp b/src/tools/moc/main.cpp index 55cf7ed872..6128d5490b 100644 --- a/src/tools/moc/main.cpp +++ b/src/tools/moc/main.cpp @@ -477,9 +477,6 @@ int runMoc(int argc, char **argv) } moc.symbols += pp.preprocessed(moc.filename, &in); - // We obviously do not support MS extensions - pp.macros.remove("_MSC_EXTENSIONS"); - if (!pp.preprocessOnly) { // 2. parse moc.parse(); -- cgit v1.2.3