Chromium Code Reviews
|
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BASE_WIN_ATLCHECK_H_ | |
| 6 #define BASE_WIN_ATLCHECK_H_ | |
| 7 | |
| 8 // 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.
| |
| 9 // | |
| 10 // 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.
| |
| 11 // own version of INT/ETC_MIN/MAX which is not wrapped with an ifdef; thus, | |
| 12 // it needs to be included first. This simulates the include conflicts | |
| 13 // that occur with non-DDK ATL versions. | |
| 14 // | |
| 15 // Various ATL headers such as atlwin.h pull in atlmem.h. Including an ICU | |
| 16 // header before the ATL headers is the most likely source if an error is | |
| 17 // generated. | |
| 18 #if defined(__ATLMEM_H__) | |
| 19 # 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
| |
| 20 # error Certain ATL headers must be before any third party ones | |
| 21 # endif | |
| 22 #else | |
| 23 # undef BASE_WIN_ATLCHECK_H_ // atlmem.h not included, check again | |
| 24 #endif | |
| 25 | |
| 26 #endif // BASE_WIN_ATLCHECK_H_ | |
| OLD | NEW |