OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // Various inline functions and macros to fix compilation of 32 bit target | 5 // Various inline functions and macros to fix compilation of 32 bit target |
6 // on MSVC with /Wp64 flag enabled. | 6 // on MSVC with /Wp64 flag enabled. |
7 | 7 |
8 #ifndef BASE_FIX_WP64_H__ | 8 #ifndef BASE_FIX_WP64_H__ |
9 #define BASE_FIX_WP64_H__ | 9 #define BASE_FIX_WP64_H__ |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 #ifdef SetClassLongPtrW | 66 #ifdef SetClassLongPtrW |
67 #undef SetClassLongPtrW | 67 #undef SetClassLongPtrW |
68 inline LONG_PTR SetClassLongPtrW(HWND window, int index, LONG_PTR new_long) { | 68 inline LONG_PTR SetClassLongPtrW(HWND window, int index, LONG_PTR new_long) { |
69 return ::SetClassLongW(window, index, static_cast<LONG>(new_long)); | 69 return ::SetClassLongW(window, index, static_cast<LONG>(new_long)); |
70 } | 70 } |
71 #endif // #ifdef SetClassLongPtrW | 71 #endif // #ifdef SetClassLongPtrW |
72 | 72 |
73 #endif // #if !defined(_WIN64) && defined(_Wp64) | 73 #endif // #if !defined(_WIN64) && defined(_Wp64) |
74 | 74 |
75 #endif // BASE_FIX_WP64_H__ | 75 #endif // BASE_FIX_WP64_H__ |
76 | |
OLD | NEW |