OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Specializations of RunnableAdapter<> for Windows specific calling | 5 // Specializations of RunnableAdapter<> for Windows specific calling |
6 // conventions. Please see base/bind_internal.h for more info. | 6 // conventions. Please see base/bind_internal.h for more info. |
7 | 7 |
8 #ifndef BASE_BIND_INTERNAL_WIN_H_ | 8 #ifndef BASE_BIND_INTERNAL_WIN_H_ |
9 #define BASE_BIND_INTERNAL_WIN_H_ | 9 #define BASE_BIND_INTERNAL_WIN_H_ |
10 | 10 |
| 11 #include "build/build_config.h" |
| 12 |
11 // In the x64 architecture in Windows, __fastcall, __stdcall, etc, are all | 13 // In the x64 architecture in Windows, __fastcall, __stdcall, etc, are all |
12 // the same as __cdecl which would turn the following specializations into | 14 // the same as __cdecl which would turn the following specializations into |
13 // multiple definitions. | 15 // multiple definitions. |
14 #if !defined(ARCH_CPU_X86_64) | 16 #if !defined(ARCH_CPU_X86_64) |
15 | 17 |
16 namespace base { | 18 namespace base { |
17 namespace internal { | 19 namespace internal { |
18 | 20 |
19 template <typename Functor> | 21 template <typename Functor> |
20 class RunnableAdapter; | 22 class RunnableAdapter; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 private: | 60 private: |
59 R (__fastcall *function_)(Args...); | 61 R (__fastcall *function_)(Args...); |
60 }; | 62 }; |
61 | 63 |
62 } // namespace internal | 64 } // namespace internal |
63 } // namespace base | 65 } // namespace base |
64 | 66 |
65 #endif // !defined(ARCH_CPU_X86_64) | 67 #endif // !defined(ARCH_CPU_X86_64) |
66 | 68 |
67 #endif // BASE_BIND_INTERNAL_WIN_H_ | 69 #endif // BASE_BIND_INTERNAL_WIN_H_ |
OLD | NEW |