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 # Definitions of symbols that may be needed at runtime but aren't necessarily | 5 # Definitions of symbols that may be needed at runtime but aren't necessarily |
6 # present in the SDK chosen for compilation. | 6 # present in the SDK chosen for compilation. |
7 # | 7 # |
8 # This file provides a symbols for _NSConcreteGlobalBlock and | 8 # This file provides symbols for _NSConcreteGlobalBlock and |
9 # _NSConcreteStackBlock, normally present in libSystem.dylib and provided by | 9 # _NSConcreteStackBlock, normally present in libSystem.dylib and provided by |
10 # by libclosure-38/data.c in Mac OS X 10.6 and later. When using the 10.5 SDK, | 10 # by libclosure-38/data.c in Mac OS X 10.6 and later. When using the 10.5 SDK, |
11 # the symbol is not present. This file's definition can be used with extreme | 11 # the symbols are not present. This file's definition can be used with extreme |
12 # care in an application that needs to use the 10.5 SDK in conjunction with | 12 # care in an application that needs to use the 10.5 SDK in conjunction with |
13 # blocks. | 13 # blocks. |
14 # | 14 # |
15 # This file cooperates with the build system (closure_leopard_compat.gyp) to | 15 # This file cooperates with the build system to produce a dynamic library |
16 # produce a dynamic library that, when linked against, causes dependents to | 16 # that, when linked against, causes dependents to look in libSystem for the |
17 # look in libSystem for the symbols provided here. It also cooperates with a | 17 # symbols provided here. It also cooperates with a header that causes |
18 # header (block.h) that causes dependents to treat the symbols provided here | 18 # dependents to treat the symbols provided here as weak imports, critical for |
19 # as weak imports, critical for the resultant output to be loadable on 10.5. | 19 # the resultant output to be loadable on 10.5. |
20 | 20 |
21 # To simplify things, this file assumes it's being built with the 10.5 SDK, | 21 # To simplify things, this file assumes it's being built with the 10.5 SDK, |
22 # a deployment target of 10.5, and is producing 32-bit x86 code. Other | 22 # a deployment target of 10.5, and is producing 32-bit x86 code. Other |
23 # combinations are possible, but not interesting for the time being. See | 23 # combinations are possible, but not interesting for the time being. See |
24 # <sys/cdefs.h> for interesting ways that names might be mangled in other | 24 # <sys/cdefs.h> for interesting ways that names might be mangled in other |
25 # configurations. | 25 # configurations. |
26 | 26 |
27 #include <AvailabilityMacros.h> | 27 #include <AvailabilityMacros.h> |
28 | 28 |
29 #if MAC_OS_X_VERSION_MIN_REQUIRED != MAC_OS_X_VERSION_10_5 || \ | 29 #if MAC_OS_X_VERSION_MIN_REQUIRED != MAC_OS_X_VERSION_10_5 || \ |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 # Some data-section symbols that might be referenced. | 119 # Some data-section symbols that might be referenced. |
120 | 120 |
121 .section __DATA,__data | 121 .section __DATA,__data |
122 | 122 |
123 DEFINE_GLOBAL_SYMBOL(___stdinp) | 123 DEFINE_GLOBAL_SYMBOL(___stdinp) |
124 DEFINE_GLOBAL_SYMBOL(___stdoutp) | 124 DEFINE_GLOBAL_SYMBOL(___stdoutp) |
125 DEFINE_GLOBAL_SYMBOL(___stderrp) | 125 DEFINE_GLOBAL_SYMBOL(___stderrp) |
126 | 126 |
127 #undef DEFINE_GLOBAL_SYMBOL | 127 #undef DEFINE_GLOBAL_SYMBOL |
OLD | NEW |