mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 03:55:46 +03:00
Merged mcb30-realmode-redesign back to HEAD
This commit is contained in:
13
src/include/stddef.h
Normal file
13
src/include/stddef.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef STDDEF_H
|
||||
#define STDDEF_H
|
||||
|
||||
/* for size_t */
|
||||
#include "stdint.h"
|
||||
|
||||
#undef NULL
|
||||
#define NULL ((void *)0)
|
||||
|
||||
#undef offsetof
|
||||
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
|
||||
|
||||
#endif /* STDDEF_H */
|
||||
Reference in New Issue
Block a user