diff options
Diffstat (limited to 'libs/c/include')
| -rw-r--r-- | libs/c/include/stddef.h | 2 | ||||
| -rw-r--r-- | libs/c/include/stdio.h | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libs/c/include/stddef.h b/libs/c/include/stddef.h index 4986043a..4858fe46 100644 --- a/libs/c/include/stddef.h +++ b/libs/c/include/stddef.h @@ -5,4 +5,6 @@ typedef unsigned int size_t; +#define offsetof(type, member) ((size_t) &((type *) NULL)->member) + #endif diff --git a/libs/c/include/stdio.h b/libs/c/include/stdio.h new file mode 100644 index 00000000..3b49b3aa --- /dev/null +++ b/libs/c/include/stdio.h @@ -0,0 +1,6 @@ +#ifndef _C_STDIO_H +#define _C_STDIO_H + +int sprintf(char *__restrict s, const char *__restrict format, ...); + +#endif |
