aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-24 22:54:28 +0900
committernsfisis <nsfisis@gmail.com>2025-08-24 22:54:28 +0900
commit39031e84952db7d1f981c2c748558aacffc0a3e4 (patch)
treec3db5c1c9e7572dc1314493b29c94e912af313a4
parent6b064525a34f1989a928597e9878466b2a8222e5 (diff)
downloadducc-39031e84952db7d1f981c2c748558aacffc0a3e4.tar.gz
ducc-39031e84952db7d1f981c2c748558aacffc0a3e4.tar.zst
ducc-39031e84952db7d1f981c2c748558aacffc0a3e4.zip
feat: add include guard
-rw-r--r--include/stdarg.h5
-rw-r--r--include/stddef.h5
-rw-r--r--src/std.h5
3 files changed, 15 insertions, 0 deletions
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
diff --git a/src/std.h b/src/std.h
index f5dc3ba..a2ab45e 100644
--- a/src/std.h
+++ b/src/std.h
@@ -1,3 +1,6 @@
+#ifndef DUCC_STD_H
+#define DUCC_STD_H
+
#include <stddef.h>
struct FILE;
@@ -50,3 +53,5 @@ char* dirname(char*);
#define BOOL int
#define TRUE 1
#define FALSE 0
+
+#endif