Index: base/bind_internal_win.h |
diff --git a/base/bind_internal_win.h b/base/bind_internal_win.h |
index dab8d51717b7bb15f496f77f3f6495159d9e363b..ca6feeb825cd3a1e3183fbe9fb8cbd47d6e387ba 100644 |
--- a/base/bind_internal_win.h |
+++ b/base/bind_internal_win.h |
@@ -3,6 +3,7 @@ |
// DO NOT EDIT BY HAND!!! |
+ |
// 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. |
@@ -14,6 +15,11 @@ |
#define BASE_BIND_INTERNAL_WIN_H_ |
#pragma once |
+// In the x64 architecture in Windows, __fastcall, __stdcall, etc, are all |
+// the same as __cdecl which would turn the following specializations into |
+// multiple definitions. |
+#if !defined(ARCH_CPU_X86_64) |
+ |
namespace base { |
namespace internal { |
@@ -125,4 +131,6 @@ struct FunctionTraits<R(__fastcall *)(X1, X2, X3, X4, X5, X6)> { |
} // namespace internal |
} // namespace base |
+#endif // !defined(ARCH_CPU_X86_64) |
+ |
#endif // BASE_BIND_INTERNAL_WIN_H_ |