aboutsummaryrefslogtreecommitdiff
path: root/include/stddef.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stddef.h')
-rw-r--r--include/stddef.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/stddef.h b/include/stddef.h
new file mode 100644
index 000000000..570512ba7
--- /dev/null
+++ b/include/stddef.h
@@ -0,0 +1,6 @@
+#ifndef __STDDEF_H__
+#define __STDDEF_H__
+
+#define offsetof(st, m) ((size_t) ( (char *)&((st *)(0))->m - (char *)0 ))
+
+#endif