summaryrefslogtreecommitdiff
path: root/usr/sdk/inc
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-12-21 19:05:16 -0500
committerIan Moffett <ian@osmora.org>2025-12-21 19:05:16 -0500
commit085f9b4de880efef92ae5a678c16fa8f05c8a579 (patch)
tree7af252b8b8d7ea83b885aa9757708792bcbc80de /usr/sdk/inc
parent542eb1f99b6bbfc024c80041ecbb3c108c9a875c (diff)
usr: sdk: Add sdk/stdarg.h
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr/sdk/inc')
-rw-r--r--usr/sdk/inc/sdk/stdarg.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/usr/sdk/inc/sdk/stdarg.h b/usr/sdk/inc/sdk/stdarg.h
new file mode 100644
index 0000000..09c538f
--- /dev/null
+++ b/usr/sdk/inc/sdk/stdarg.h
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2025, Ian Moffett.
+ * Provided under the BSD-3 clause.
+ */
+
+#ifndef _LIB_STDARG_H_
+#define _LIB_STDARG_H_ 1
+
+#ifndef __GNUC_VA_LIST
+#define __GNUC_VA_LIST
+typedef __builtin_va_list __gnuc_va_list;
+#endif /* __GNUC_VA_LIST */
+
+typedef __gnuc_va_list va_list;
+
+#define va_start(ap, last) __builtin_va_start((ap), last)
+#define va_end(ap) __builtin_va_end((ap))
+#define va_arg(ap, type) __builtin_va_arg((ap), type)
+
+#endif /* !_LIB_STDARG_H_ */