From fc4547b412e28164af1bf8981234c6af959ccc0b Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 13 Jun 2023 10:07:16 +0200 Subject: WIP --- base/inc/macros.hh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 base/inc/macros.hh (limited to 'base/inc') diff --git a/base/inc/macros.hh b/base/inc/macros.hh new file mode 100644 index 0000000..6d88669 --- /dev/null +++ b/base/inc/macros.hh @@ -0,0 +1,16 @@ +#ifndef BASE_MACROS_HH +#define BASE_MACROS_HH + +#if defined(HAVE_ATTRIBUTE_VISIBILITY_HIDDEN) +# define HIDDEN __attribute__((visibility ("hidden"))) +#else +# define HIDDEN +#endif + +#if defined(HAVE_ATTRIBUTE_UNLIKELY) +# define UNLIKELY [[unlikely]] +#else +# define UNLIKELY +#endif + +#endif // BASE_MACROS_HH -- cgit v1.2.3-70-g09d2