From 39031e84952db7d1f981c2c748558aacffc0a3e4 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 24 Aug 2025 22:54:28 +0900 Subject: feat: add include guard --- include/stdarg.h | 5 +++++ include/stddef.h | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'include') diff --git a/include/stdarg.h b/include/stdarg.h index bdc4101..9995ae0 100644 --- a/include/stdarg.h +++ b/include/stdarg.h @@ -1,3 +1,6 @@ +#ifndef __DUCC_BUILTIN___STDARG_H__ +#define __DUCC_BUILTIN___STDARG_H__ + // System V Application Binary Interface // AMD64 Architecture Processor Supplement // (With LP64 and ILP32 Programming Models) @@ -19,3 +22,5 @@ typedef struct __ducc_va_list* va_list; void va_end(va_list args) { } + +#endif diff --git a/include/stddef.h b/include/stddef.h index d4977de..702d91a 100644 --- a/include/stddef.h +++ b/include/stddef.h @@ -1,3 +1,6 @@ +#ifndef __DUCC_BUILTIN___STDDEF_H__ +#define __DUCC_BUILTIN___STDDEF_H__ + #define NULL 0 // TODO: unsigned @@ -8,3 +11,5 @@ typedef long size_t; // - nullptr_t (C23) // - offsetof // - ptrdiff_t + +#endif -- cgit v1.2.3-70-g09d2