OLD | NEW |
| 1 /* |
| 2 * Copyright 2015 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. |
| 5 */ |
1 #ifndef _LIBC_SYMBOLS_H | 6 #ifndef _LIBC_SYMBOLS_H |
2 #define _LIBC_SYMBOLS_H 1 | 7 #define _LIBC_SYMBOLS_H 1 |
3 | 8 |
4 #define libc_hidden_def(x) | 9 #define libc_hidden_def(x) |
5 #define libc_hidden_weak(x) | 10 #define libc_hidden_weak(x) |
6 #define libc_hidden_proto(x) | 11 #define libc_hidden_proto(x) |
7 #define libc_hidden_data_def(x) | 12 #define libc_hidden_data_def(x) |
8 #define libresolv_hidden_def(x) | 13 #define libresolv_hidden_def(x) |
9 #define libresolv_hidden_weak(x) | 14 #define libresolv_hidden_weak(x) |
10 #define libresolv_hidden_data_def(x) | 15 #define libresolv_hidden_data_def(x) |
11 #define libresolv_hidden_proto(x) | 16 #define libresolv_hidden_proto(x) |
12 #define static_link_warning(x) | 17 #define static_link_warning(x) |
13 #define libc_freeres_ptr(x) x | 18 #define libc_freeres_ptr(x) x |
14 #define DL_CALL_FCT(x,y) x y | 19 #define DL_CALL_FCT(x,y) x y |
15 #define attribute_hidden | 20 #define attribute_hidden |
16 #define internal_function | 21 #define internal_function |
17 | |
18 #define __set_errno(x) (errno = (x)) | 22 #define __set_errno(x) (errno = (x)) |
| 23 #define weak_alias(name, aliasname) _weak_alias (name, aliasname) |
| 24 #define _weak_alias(name, aliasname) \ |
| 25 extern __typeof (name) aliasname __attribute__ ((weak, alias (#name))); |
19 | 26 |
20 #endif | 27 #endif |
21 | |
OLD | NEW |