diff --git a/libs/libc/include/_/macros.h b/libs/libc/include/_/macros.h new file mode 100644 index 00000000..a9f5e9ef --- /dev/null +++ b/libs/libc/include/_/macros.h @@ -0,0 +1,8 @@ +#ifndef __MACROS_H +#define __MACROS_H + +#define noreturn __attribute__((noreturn)) +#define align(n) __attribute__((aligned(n))) +#define deprecated(msg) __attribute__((deprecated(msg))) + +#endif \ No newline at end of file diff --git a/libs/libc/include/luna.h b/libs/libc/include/luna.h index 5383caa1..1a065b17 100644 --- a/libs/libc/include/luna.h +++ b/libs/libc/include/luna.h @@ -1,10 +1,9 @@ #ifndef _LUNA_H #define _LUNA_H +#include <_/macros.h> #include -#define noreturn __attribute__((noreturn)) - #ifdef __cplusplus extern "C" { diff --git a/libs/libc/include/stdlib.h b/libs/libc/include/stdlib.h index 7c27024d..1282dff3 100644 --- a/libs/libc/include/stdlib.h +++ b/libs/libc/include/stdlib.h @@ -1,10 +1,9 @@ #ifndef _STDLIB_H #define _STDLIB_H +#include <_/macros.h> #include -#define noreturn __attribute__((noreturn)) - #ifdef __cplusplus extern "C" {