mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-11 03:39:59 +00:00
7564502b0b
* Add stdint.h with intptr_t and uinptr_t * Use intptr types in dmamgr and yaz0 * Use intptr types in stackcheck * Use intptr types in idle * Run formatter * Use pointers for StackEntry (+ minor type fix)
14 lines
276 B
C
14 lines
276 B
C
#ifndef STDDEF_H
|
|
#define STDDEF_H
|
|
|
|
#define NULL ((void*)0)
|
|
|
|
typedef unsigned long size_t;
|
|
|
|
#ifdef __GNUC__
|
|
#define offsetof(structure, member) __builtin_offsetof (structure, member)
|
|
#else
|
|
#define offsetof(structure, member) ((size_t)&(((structure*)0)->member))
|
|
#endif
|
|
|
|
#endif
|