mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-21 18:44:01 +00:00
17 lines
499 B
C
17 lines
499 B
C
#ifndef CLKS_COMPILER_H
|
|
#define CLKS_COMPILER_H
|
|
|
|
#define CLKS_USED __attribute__((used))
|
|
#define CLKS_NORETURN __attribute__((noreturn))
|
|
#define CLKS_PACKED __attribute__((packed))
|
|
#define CLKS_ALIGN(N) __attribute__((aligned(N)))
|
|
|
|
#if defined(CLKS_ARCH_X86_64) && defined(CLKS_ARCH_AARCH64)
|
|
#error "Only one architecture can be selected"
|
|
#endif
|
|
|
|
#if !defined(CLKS_ARCH_X86_64) && !defined(CLKS_ARCH_AARCH64)
|
|
#error "Missing architecture define: CLKS_ARCH_X86_64 or CLKS_ARCH_AARCH64"
|
|
#endif
|
|
|
|
#endif |