diff options
Diffstat (limited to 'na/include/libc-shim/features.h')
| -rw-r--r-- | na/include/libc-shim/features.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/na/include/libc-shim/features.h b/na/include/libc-shim/features.h new file mode 100644 index 0000000..a3466c8 --- /dev/null +++ b/na/include/libc-shim/features.h @@ -0,0 +1,12 @@ +/* Shim: musl expects this header */ +#ifndef _FEATURES_H +#define _FEATURES_H + +/* weak_alias: musl uses this for symbol aliasing (e.g. __memrchr -> memrchr) */ +#define weak_alias(old, new) \ + extern __typeof(old) new __attribute__((__weak__, __alias__(#old))) + +/* hidden attribute used by some musl sources */ +#define hidden __attribute__((__visibility__("hidden"))) + +#endif |
