aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-05-25 20:56:40 +0200
committerDuncaen <mail@duncano.de>2017-05-25 20:56:40 +0200
commitcbab257026a7298fdb63370c83de3c94fc4502f7 (patch)
tree2c8ca22e1d6c3e2a03a58b63a506a840413532da
parent24e821b47dd70f3873b58fb2f5b70f372dcd45cd (diff)
downloadlobase-cbab257026a7298fdb63370c83de3c94fc4502f7.tar.gz
include/compat.h: add __strong_alias
-rw-r--r--include/compat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/compat.h b/include/compat.h
index a8ca9eb..b217d42 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -29,6 +29,9 @@
#define __weak_alias(new, old) \
extern __typeof(old) new __attribute__((weak, alias(#old)))
+#define __strong_alias(new, old) \
+ extern __typeof(old) new __attribute__((alias(#old)))
+
#ifndef SA_LEN
#define SA_LEN(X) \
(((struct sockaddr*)(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in) : \