mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-04-16 06:56:43 +02:00
39 lines
607 B
C
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
|