/usr/include/girara/macros.h is in libgirara-dev 0.2.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | /* See LICENSE file for license and copyright information */
#ifndef GIRARA_MACROS_H
#define GIRARA_MACROS_H
#ifndef GIRARA_PRINTF
# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4) || defined(__clang__)
# define GIRARA_PRINTF(format_idx, arg_idx) \
__attribute__((__format__ (__printf__, format_idx, arg_idx)))
# else
# define GIRARA_PRINTF(format_idx, arg_idx)
# endif
#endif
#ifndef GIRARA_UNUSED
# if defined(__GNUC__) || defined(__clang__)
# define GIRARA_UNUSED(x) UNUSED_ ## x __attribute__((unused))
# elif defined(__LCLINT__)
# define GIRARA_UNUSED(x) /*@unused@*/ x
# else
# define GIRARA_UNUSED(x) x
# endif
#endif
#ifndef GIRARA_HIDDEN
# if (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__)
# define GIRARA_HIDDEN __attribute__((visibility("hidden")))
# elif defined(__SUNPRO_C)
# define GIRARA_HIDDEN __hidden
# else
# define GIRARA_HIDDEN
# endif
#endif
#ifndef GIRARA_DEPRECATED
# if defined(__GNUC__)
# define GIRARA_DEPRECATED(x) x __attribute__((deprecated))
# define GIRARA_DEPRECATED_ __attribute__((deprecated))
# else
# define GIRARA_DEPRECATED(x) x
# define GIRARA_DEPRECATED_
# endif
#endif
#ifndef GIRARA_ALLOC_SIZE
# if defined(__GNUC__)
# define GIRARA_ALLOC_SIZE(...) __attribute__((alloc_size(__VA_ARGS__)))
# else
# define GIRARA_ALLOC_SIZE(x)
# endif
#endif
#ifndef GIRARA_DO_PRAGMA
# if defined(__GNUC__) || defined(__clang__)
# define GIRARA_DO_PRAGMA(x) _Pragma(#x)
# else
# define GIRARA_DO_PRAGMA(x)
# endif
#endif
#ifndef GIRARA_IGNORE_DEPRECATED
# define GIRARA_IGNORE_DEPRECATED \
GIRARA_DO_PRAGMA(GCC diagnostic push) \
GIRARA_DO_PRAGMA(GCC diagnostic ignored "-Wdeprecated-declarations")
#endif
#ifndef GIRARA_UNIGNORE
# define GIRARA_UNIGNORE \
GIRARA_DO_PRAGMA(GCC diagnostic pop)
#endif
#endif
|