aboutsummaryrefslogtreecommitdiff
path: root/include/compiler.h
blob: 4fc02f2c51bcf87bbcc92e9b98714390e78f9819 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef _VISIBILITY_H
#define _VISIBILITY_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