toolchain: add stuff i forgot about
This commit is contained in:
parent
6f10f507da
commit
190eedd842
2 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,7 @@ typedef __UINT64_TYPE__ uint64_t;
|
|||
|
||||
/** Unsigned size specifier. */
|
||||
typedef __SIZE_TYPE__ size_t;
|
||||
typedef __SIZE_TYPE__ uintptr_t;
|
||||
/** Signed size specifier (negative sizes mean error codes). */
|
||||
typedef __PTRDIFF_TYPE__ ssize_t;
|
||||
typedef __PTRDIFF_TYPE__ ptrdiff_t;
|
||||
|
|
|
@ -46,6 +46,9 @@
|
|||
#define __section(name) __attribute__((section(#name)))
|
||||
#endif /* __section */
|
||||
|
||||
/** Place a variable in program memory rather than into RAM. */
|
||||
#define __rodata __section(.rodata#)
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Felix Kopp <sandtler@sandtler.club>
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue