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

Side by Side Diff: third_party/wtl/include/atlapp.h

Issue 11092051: merge upstream patch for wtl to compile on vs2012 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/wtl/README.chromium ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Windows Template Library - WTL version 8.0 1 // Windows Template Library - WTL version 8.0
2 // Copyright (C) Microsoft Corporation. All rights reserved. 2 // Copyright (C) Microsoft Corporation. All rights reserved.
3 // 3 //
4 // This file is a part of the Windows Template Library. 4 // This file is a part of the Windows Template Library.
5 // The use and distribution terms for this software are covered by the 5 // The use and distribution terms for this software are covered by the
6 // Microsoft Permissive License (Ms-PL) which can be found in the file 6 // Microsoft Permissive License (Ms-PL) which can be found in the file
7 // Ms-PL.txt at the root of this distribution. 7 // Ms-PL.txt at the root of this distribution.
8 8
9 #ifndef __ATLAPP_H__ 9 #ifndef __ATLAPP_H__
10 #define __ATLAPP_H__ 10 #define __ATLAPP_H__
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 #if (_ATL_VER < 0x0700) 450 #if (_ATL_VER < 0x0700)
451 #ifndef ATLVERIFY 451 #ifndef ATLVERIFY
452 #ifdef _DEBUG 452 #ifdef _DEBUG
453 #define ATLVERIFY(expr) ATLASSERT(expr) 453 #define ATLVERIFY(expr) ATLASSERT(expr)
454 #else 454 #else
455 #define ATLVERIFY(expr) (expr) 455 #define ATLVERIFY(expr) (expr)
456 #endif // DEBUG 456 #endif // DEBUG
457 #endif // ATLVERIFY 457 #endif // ATLVERIFY
458 #endif // (_ATL_VER < 0x0700) 458 #endif // (_ATL_VER < 0x0700)
459 459
460 // Forward declaration for ATL3 fix 460 // Forward declaration for ATL3 and ATL11 fix
461 #if (_ATL_VER < 0x0700) && defined(_ATL_DLL) && !defined(_WIN32_WCE) 461 #if (((_ATL_VER < 0x0700) && defined(_ATL_DLL)) || (_ATL_VER >= 0x0B00)) && !def ined(_WIN32_WCE)
462 namespace ATL { HRESULT AtlGetCommCtrlVersion(LPDWORD pdwMajor, LPDWORD pdwMin or); }; 462 namespace ATL { HRESULT AtlGetCommCtrlVersion(LPDWORD pdwMajor, LPDWORD pdwMin or); };
463 #endif 463 #endif
464 464
465 465
466 namespace WTL 466 namespace WTL
467 { 467 {
468 468
469 #if (_ATL_VER >= 0x0700) 469 #if (_ATL_VER >= 0x0700)
470 DECLARE_TRACE_CATEGORY(atlTraceUI); 470 DECLARE_TRACE_CATEGORY(atlTraceUI);
471 #ifdef _DEBUG 471 #ifdef _DEBUG
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 #define _WTYPES_NS 1565 #define _WTYPES_NS
1566 #else 1566 #else
1567 #define _WTYPES_NS WTL 1567 #define _WTYPES_NS WTL
1568 #endif 1568 #endif
1569 #endif // _WTYPES_NS 1569 #endif // _WTYPES_NS
1570 1570
1571 }; // namespace WTL 1571 }; // namespace WTL
1572 1572
1573 1573
1574 /////////////////////////////////////////////////////////////////////////////// 1574 ///////////////////////////////////////////////////////////////////////////////
1575 // General DLL version helpers (excluded from atlbase.h if _ATL_DLL is defined) 1575 // General DLL version helpers
1576 // (ATL3: excluded from atlbase.h if _ATL_DLL is defined; ATL11: removed)
1576 1577
1577 #if (_ATL_VER < 0x0700) && defined(_ATL_DLL) && !defined(_WIN32_WCE) 1578 #if (((_ATL_VER < 0x0700) && defined(_ATL_DLL)) || (_ATL_VER >= 0x0B00)) && !def ined(_WIN32_WCE)
1578 1579
1579 namespace ATL 1580 namespace ATL
1580 { 1581 {
1581 1582
1582 inline HRESULT AtlGetDllVersion(HINSTANCE hInstDLL, DLLVERSIONINFO* pDllVersionI nfo) 1583 inline HRESULT AtlGetDllVersion(HINSTANCE hInstDLL, DLLVERSIONINFO* pDllVersionI nfo)
1583 { 1584 {
1584 ATLASSERT(pDllVersionInfo != NULL); 1585 ATLASSERT(pDllVersionInfo != NULL);
1585 if(pDllVersionInfo == NULL) 1586 if(pDllVersionInfo == NULL)
1586 return E_INVALIDARG; 1587 return E_INVALIDARG;
1587 1588
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 // These are always included 1677 // These are always included
1677 #include "atlwinx.h" 1678 #include "atlwinx.h"
1678 #include "atluser.h" 1679 #include "atluser.h"
1679 #include "atlgdi.h" 1680 #include "atlgdi.h"
1680 1681
1681 #ifndef _WTL_NO_AUTOMATIC_NAMESPACE 1682 #ifndef _WTL_NO_AUTOMATIC_NAMESPACE
1682 using namespace WTL; 1683 using namespace WTL;
1683 #endif // !_WTL_NO_AUTOMATIC_NAMESPACE 1684 #endif // !_WTL_NO_AUTOMATIC_NAMESPACE
1684 1685
1685 #endif // __ATLAPP_H__ 1686 #endif // __ATLAPP_H__
OLDNEW
« no previous file with comments | « third_party/wtl/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698