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

Side by Side Diff: base/mac/closure_blocks_leopard_compat.h

Issue 9549012: Move closure_blocks_leopard_compat to base now that it's used by two modules. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
OLDNEW
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 #ifndef CONTENT_BROWSER_MAC_CLOSURE_BLOCKS_LEOPARD_COMPAT_H_ 5 #ifndef BASE_MAC_CLOSURE_BLOCKS_LEOPARD_COMPAT_H_
6 #define CONTENT_BROWSER_MAC_CLOSURE_BLOCKS_LEOPARD_COMPAT_H_ 6 #define BASE_MAC_CLOSURE_BLOCKS_LEOPARD_COMPAT_H_
7 #pragma once 7 #pragma once
8 8
9 // libclosure (blocks) compatibility for Mac OS X 10.5 (Leopard) 9 // libclosure (blocks) compatibility for Mac OS X 10.5 (Leopard)
10 // 10 //
11 // Background material: 11 // Background material:
12 // http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Blocks 12 // http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Blocks
13 // http://opensource.apple.com/source/libclosure/libclosure-38/ 13 // http://opensource.apple.com/source/libclosure/libclosure-38/
14 // 14 //
15 // Leopard doesn't support blocks. Chrome supports Leopard. Chrome needs to use 15 // Leopard doesn't support blocks. Chrome supports Leopard. Chrome needs to use
16 // blocks. 16 // blocks.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 #ifndef Block_copy 95 #ifndef Block_copy
96 #define Block_copy(...) \ 96 #define Block_copy(...) \
97 ((__typeof(__VA_ARGS__))_Block_copy((const void *)(__VA_ARGS__))) 97 ((__typeof(__VA_ARGS__))_Block_copy((const void *)(__VA_ARGS__)))
98 #endif 98 #endif
99 99
100 #ifndef Block_release 100 #ifndef Block_release
101 #define Block_release(...) _Block_release((const void *)(__VA_ARGS__)) 101 #define Block_release(...) _Block_release((const void *)(__VA_ARGS__))
102 #endif 102 #endif
103 103
104 #endif // CONTENT_BROWSER_MAC_CLOSURE_BLOCKS_LEOPARD_COMPAT_H_ 104 #endif // BASE_MAC_CLOSURE_BLOCKS_LEOPARD_COMPAT_H_
OLDNEW
« base/base.gyp ('K') | « base/base.gyp ('k') | base/mac/closure_blocks_leopard_compat.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698