libbsd/include/bsd/cdefs.h
Guillem Jover 1e8b819b45 Disable __unused
It conflicts with a struct member in a Linux header.
2008-05-06 08:51:56 +03:00

39 lines
607 B
C

#ifndef LIBBSD_CDEFS_H
#define LIBBSD_CDEFS_H
#include <sys/cdefs.h>
#ifndef setproctitle
# define setproctitle(fmt, args...)
#endif
#ifndef __dead2
# define __dead2
#endif
/* Linux headers define a struct with a member names __unused.
* Disable for now. */
#if 0
#ifndef __unused
# ifdef __GNUC__
# define __unused __attribute__((unused))
# else
# define __unused
# endif
#endif
#endif
#ifndef __printflike
# ifdef __GNUC__
# define __printflike(x, y) __attribute((format(printf, (x), (y))))
# else
# define __printflike(x, y)
# endif
#endif
#ifndef __FBSDID
# define __FBSDID(x)
#endif
#endif