summaryrefslogtreecommitdiffstats
path: root/third_party/wtl
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/wtl')
-rw-r--r--third_party/wtl/README.chromium4
-rw-r--r--third_party/wtl/include/atlapp.h9
2 files changed, 9 insertions, 4 deletions
diff --git a/third_party/wtl/README.chromium b/third_party/wtl/README.chromium
index d9eb660..9fb89b8 100644
--- a/third_party/wtl/README.chromium
+++ b/third_party/wtl/README.chromium
@@ -18,3 +18,7 @@ When defining NOMINMAX before including windows.h, min and max aren't
defined. __min and __max are always defined though. So use them instead.
This patch simply consist of a search of replace for both term."
+
+---
+
+Cherry pick of http://sourceforge.net/tracker/index.php?func=detail&aid=1871358&group_id=109071&atid=652374
diff --git a/third_party/wtl/include/atlapp.h b/third_party/wtl/include/atlapp.h
index ca424eb..4a5e6a7 100644
--- a/third_party/wtl/include/atlapp.h
+++ b/third_party/wtl/include/atlapp.h
@@ -457,8 +457,8 @@ static CWndClassInfo& GetWndClassInfo() \
#endif // ATLVERIFY
#endif // (_ATL_VER < 0x0700)
-// Forward declaration for ATL3 fix
-#if (_ATL_VER < 0x0700) && defined(_ATL_DLL) && !defined(_WIN32_WCE)
+// Forward declaration for ATL3 and ATL11 fix
+#if (((_ATL_VER < 0x0700) && defined(_ATL_DLL)) || (_ATL_VER >= 0x0B00)) && !defined(_WIN32_WCE)
namespace ATL { HRESULT AtlGetCommCtrlVersion(LPDWORD pdwMajor, LPDWORD pdwMinor); };
#endif
@@ -1572,9 +1572,10 @@ public:
///////////////////////////////////////////////////////////////////////////////
-// General DLL version helpers (excluded from atlbase.h if _ATL_DLL is defined)
+// General DLL version helpers
+// (ATL3: excluded from atlbase.h if _ATL_DLL is defined; ATL11: removed)
-#if (_ATL_VER < 0x0700) && defined(_ATL_DLL) && !defined(_WIN32_WCE)
+#if (((_ATL_VER < 0x0700) && defined(_ATL_DLL)) || (_ATL_VER >= 0x0B00)) && !defined(_WIN32_WCE)
namespace ATL
{