~kennylevinsen/seatd

ref: b3438f446e19f9cbe37724a1efe070d03baa292b seatd/include/compiler.h -rw-r--r-- 384 bytes
b3438f44Kenny Levinsen connection: Shrink buffer sizes 9 months ago
                                                                                
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")))
#else
#define LIBSEAT_EXPORT
#endif

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

#endif