summaryrefslogtreecommitdiff
path: root/include/bsd/cdefs.h
blob: a23e15e224926777ff68e9010496c945f5135796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef LIBBSD_CDEFS_H
#define LIBBSD_CDEFS_H

#include <sys/cdefs.h>

#ifndef setproctitle
# define setproctitle(fmt, args...)
#endif

#ifndef __dead2
# define __dead2
#endif

#ifndef __unused
# ifdef __GNUC__
#  define __unused __attribute__((unused))
# else
#  define __unused
# 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