24 lines
326 B
C
24 lines
326 B
C
#ifndef STDDEF_H
|
|
#define STDDEF_H
|
|
#include <stdint.h>
|
|
|
|
#ifndef NULL
|
|
#define NULL ((void *)0)
|
|
#endif
|
|
|
|
#ifndef size_t
|
|
#define size_t uint64_t
|
|
#endif
|
|
|
|
typedef struct {
|
|
#if __riscv_xlen == 64
|
|
long double ld;
|
|
#elif __riscv_xlen == 32
|
|
long long ll;
|
|
#else
|
|
double d;
|
|
#endif
|
|
void *p;
|
|
} max_align_t;
|
|
|
|
#endif // STDDEF_H
|