seatd/include/compiler.h
Kenny Levinsen d26466bf3b Remove ALWAYS_INLINE
Didn't do what I wanted it to anyway.
2020-08-01 23:13:54 +02:00

14 lines
334 B
C

#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