aboutsummaryrefslogtreecommitdiff
path: root/include/compiler.h
blob: 6a2b169162246f20de150b690b0022dc30017011 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _VISIBILITY_H
#define _VISIBILITY_H

#ifdef __GNUC__
#define ATTRIB_PRINTF(start, end) __attribute__((format(printf, start, end)))
#define LIBSEAT_EXPORT		  __attribute__((visibility("default")))
#else
#define ATTRIB_PRINTF(start, end)
#define LIBSEAT_EXPORT
#endif

#define STRLEN(s) ((sizeof(s) / sizeof(s[0])) - 1)

#endif