Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Add some cdefs missing definitions.
Vsevolod Stakhov committed 11 years ago
commit 99970ea618d1c6c57fc60feee6427faf80eeb3f1
parent 716b3e5
1 file changed +11 -0
modified compat/bsd_compat.h
@@ -110,5 +110,16 @@ char * strnstr(const char *s, const char *find, size_t slen);
#define ENEEDAUTH 81
#endif

+
#ifndef __DECONST
+
#define __DECONST(type, var)    ((type)(uintptr_t)(const void *)(var))
+
#endif
+

+
#ifndef __unused
+
#ifdef __GNUC__
+
# define __unused __attribute__((__unused__))
+
#else
+
# define __unused
+
#endif
+
#endif

#endif