summaryrefslogtreecommitdiff
path: root/spm/scmi/include/ext/lib/libc/stddef.h
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2023-11-28 15:53:14 +0100
committerVincent Guittot <vincent.guittot@linaro.org>2023-11-30 08:52:20 +0100
commit0c6d2b491fbdb0998f1f79ec05383a9234007a6c (patch)
tree37ee711f764675b118f70b8fdaa90d317319f300 /spm/scmi/include/ext/lib/libc/stddef.h
parentda7d6f217f3fb6c8634f433cf008c2fe03994108 (diff)
Add standalone scmi partition
Add a SCMI server partition based on cactus one. scmi is compiled only with header and C files in spm/scmi directory to help tracking dependency and ease the move of the code in SCP-firmware. Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Diffstat (limited to 'spm/scmi/include/ext/lib/libc/stddef.h')
-rw-r--r--spm/scmi/include/ext/lib/libc/stddef.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/spm/scmi/include/ext/lib/libc/stddef.h b/spm/scmi/include/ext/lib/libc/stddef.h
new file mode 100644
index 0000000..58a519e
--- /dev/null
+++ b/spm/scmi/include/ext/lib/libc/stddef.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2012-2017 Roberto E. Vargas Caballero
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+/*
+ * Portions copyright (c) 2018-2019, ARM Limited and Contributors.
+ * All rights reserved.
+ */
+
+#ifndef STDDEF_H
+#define STDDEF_H
+
+#include <stddef_.h>
+
+#ifndef _PTRDIFF_T
+typedef long ptrdiff_t;
+#define _PTRDIFF_T
+#endif
+
+#ifndef NULL
+#define NULL ((void *) 0)
+#endif
+
+#define offsetof(st, m) __builtin_offsetof(st, m)
+
+#endif /* STDDEF_H */