Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3053)

Unified Diff: base/win/atlcheck.h

Issue 6676030: WinDDK ATL and MSVC express compatability (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Address comments; r78670; make atlcheck.h not pull in header Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/atlcheck.h
===================================================================
--- base/win/atlcheck.h (revision 0)
+++ base/win/atlcheck.h (revision 0)
@@ -0,0 +1,26 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BASE_WIN_ATLCHECK_H_
+#define BASE_WIN_ATLCHECK_H_
+
+// USAGE: Put after atl headers in all headers; headers only.
Mark Mentovai 2011/03/18 14:54:47 Put after ATL headers in all headers that include
RN 2011/03/18 16:39:56 Sounds better, done.
+//
+// Windows DDK 7.1's ATL atlmem.h pulls in intsafe.h which has it's
Mark Mentovai 2011/03/18 14:54:47 it's -> its
RN 2011/03/18 16:39:56 Done.
+// own version of INT/ETC_MIN/MAX which is not wrapped with an ifdef; thus,
+// it needs to be included first. This simulates the include conflicts
+// that occur with non-DDK ATL versions.
+//
+// Various ATL headers such as atlwin.h pull in atlmem.h. Including an ICU
+// header before the ATL headers is the most likely source if an error is
+// generated.
+#if defined(__ATLMEM_H__)
+# if defined(INT8_MAX) && !defined(DWORD_ERROR) // DWORD_ERROR is intsafe.h
Mark Mentovai 2011/03/18 14:54:47 We never indent preprocessor macros at all. Pull a
RN 2011/03/18 16:39:56 Yeah, done. While the guidelines said no indentati
+# error Certain ATL headers must be before any third party ones
+# endif
+#else
+# undef BASE_WIN_ATLCHECK_H_ // atlmem.h not included, check again
+#endif
+
+#endif // BASE_WIN_ATLCHECK_H_
Property changes on: base\win\atlcheck.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « no previous file | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698