blob: 35cc061f6664c25731ed4364795453e749f7b76d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#ifndef _COMPILER_H
#define _COMPILER_H
#ifdef __GNUC__
#define ATTRIB_PRINTF(start, end) __attribute__((format(printf, start, end)))
#else
#define ATTRIB_PRINTF(start, end)
#endif
#define STRLEN(s) ((sizeof(s) / sizeof(s[0])) - 1)
#endif
|