meta: move photon/libc to root
This commit is contained in:
27
libc/include/stddef.h
Normal file
27
libc/include/stddef.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef STDDEF_H_
|
||||
#define STDDEF_H_
|
||||
|
||||
#include "machine/_stdint.h"
|
||||
|
||||
#define NULL ((void *)0)
|
||||
#define offsetof(t, m) ((size_t)&(((t *)0)->m))
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif /* defined(__cplusplus) */
|
||||
|
||||
#ifndef __ptrdiff_t_defined
|
||||
#define __ptrdiff_t_defined
|
||||
typedef __intptr_t ptrdiff_t;
|
||||
#endif
|
||||
|
||||
#ifndef __size_t_defined
|
||||
#define __size_t_defined
|
||||
typedef __size_t size_t;
|
||||
#endif
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif /* defined(__cplusplus) */
|
||||
|
||||
#endif /* STDDEF_H_ */
|
||||
Reference in New Issue
Block a user