aboutsummaryrefslogtreecommitdiff
path: root/include/compiler.h
blob: d0f6ed2babd2c8a3529dbc0e90a662f4b52c77cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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

#if defined(__GNUC__) && __GNUC__ >= 4
#define LIBSEAT_EXPORT __attribute__((visibility("default")))
#define ALWAYS_INLINE  __attribute__((always_inline)) inline
#else
#define LIBSEAT_EXPORT
#define ALWAYS_INLINE inline
#endif

#endif