From 1fdb136a3c0a1b870d3a39f0a443c2c3aadfcbe3 Mon Sep 17 00:00:00 2001 From: "joi@chromium.org" Date: Wed, 14 Sep 2011 10:55:18 +0000 Subject: Eliminate headers from precompile.h that define 'interface' to avoid compile failures on Windows that would not be seen on Mac or Linux. I didn't do an exact measurement but I think we lose very little in terms of build time from this; Windows.h is the big Windows-specific header and it's still precompiled. BUG=none TEST=it builds Review URL: http://codereview.chromium.org/7888030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101059 0039d316-1c4b-4281-b951-d872f2087c98 --- build/precompile.h | 50 +++++++++++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 21 deletions(-) (limited to 'build/precompile.h') diff --git a/build/precompile.h b/build/precompile.h index 940d7302..73dc57f 100644 --- a/build/precompile.h +++ b/build/precompile.h @@ -22,6 +22,10 @@ // The Windows header needs to come before almost all the other // Windows-specific headers. #include +#include +#include +#include // 4 +#include // 2 // TODO(joi): Defines in atlbase.h cause conflicts; need to figure out // if/how this family of headers can be included in the PCH; several @@ -38,27 +42,31 @@ #include // 2 */ -#include // 2 -#include // 3 -#include // 2 -#include -#include // 2 -#include // 1 -#include // 1 -#include // 2 -#include // 1 -#include // 1 -#include // 2 -#include // 2 -#include // 2 -#include -#include // 1 -//#include TODO(joi): Caused conflicts, see if they can be resolved. -#include // 1 -#include // 4 -#include // 2 -#include // 4 -#include // 2 +// TODO(joi): Objbase.h and other files that rely on it bring in +// [ #define interface struct ] which can cause problems in a +// multi-platform build like Chrome's. Tried #undef-ing it, but +// there are currently 118 targets that break if we do this, so +// leaving out of the precompiled header for now. +//#include // 2 +//#include // 3 +//#include // 2 +//#include // 2 +//#include // 1 +//#include // 1 +//#include // 2 +//#include // 1 +//#include // 1 +//#include // 2 +//#include // 2 +//#include // 2 +//#include // 1 +//#include // 1 +//#include // 4 +//#include // 2 + +// TODO(joi): Caused other conflicts in addition to the 'interface' issue +// above, see if they can be resolved. +//#include #include #include -- cgit v1.1