mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-24 11:14:01 +00:00
接着上个
This commit is contained in:
17
clks.local.bak/include/clks/compiler.h
Normal file
17
clks.local.bak/include/clks/compiler.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user