Use prettier #defines for attributes

This commit is contained in:
2025-12-21 23:03:56 +01:00
parent b2d8294b12
commit c85cbd0c01
8 changed files with 36 additions and 27 deletions

8
kernel/aux/compiler.h Normal file
View File

@@ -0,0 +1,8 @@
#ifndef _KERNEL_AUX_COMPILER_H
#define _KERNEL_AUX_COMPILER_H
#define PACKED __attribute__((packed))
#define ALIGNED(N) __attribute__((aligned((N))))
#define SECTION(name) __attribute__((section(name)))
#endif // _KERNEL_AUX_COMPILER_H