Initial implementation of seatd and libseat
This commit is contained in:
parent
f85434de66
commit
61716a2c77
32 changed files with 4744 additions and 0 deletions
18
include/compiler.h
Normal file
18
include/compiler.h
Normal file
|
@ -0,0 +1,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
|
Loading…
Add table
Add a link
Reference in a new issue