summaryrefslogtreecommitdiff
path: root/na/include/libc-shim/features.h
blob: a3466c8f0c6ad066e9019c4cb8d41f8906cc3880 (plain)
1
2
3
4
5
6
7
8
9
10
11
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