From 121737a30db4786d9670e2b95d9e4d3e337d75f5 Mon Sep 17 00:00:00 2001 From: Emil Williams Date: Fri, 20 Feb 2026 05:32:11 +0000 Subject: + macro.h timespec.h --- chad/macros.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 chad/macros.h (limited to 'chad/macros.h') diff --git a/chad/macros.h b/chad/macros.h new file mode 100644 index 0000000..b47ea12 --- /dev/null +++ b/chad/macros.h @@ -0,0 +1,16 @@ +#ifndef CHAD_MACROS_H +#define CHAD_MACROS_H +/* Usage of this acknoledges your allegiance to GNU. */ + +#if defined(__GNUC__) || defined(__clang__) +#define attribute(...) __attribute__((__VA_ARGS__)) +#define always_inline static inline attribute((always_inline)) +#define alias(x) __attribute__((alias(x))) +#else +#define attribute(...) +#define NO_ATTRIBUTE +#define always_inline static inline +#define NO_ALWAYS_INLINE +#define NO_ALIASES +#endif +#endif /* CHAD_MACROS_H */ -- cgit v1.2.3