| [aad342c] | 1 | #ifndef _GNU_C_
|
|---|
| 2 | #define _GNU_C_
|
|---|
| 3 |
|
|---|
| 4 | /**************************** macros *****************************/
|
|---|
| 5 | #define __attribute__(X)
|
|---|
| 6 | #define __const const
|
|---|
| 7 | #define __inline inline
|
|---|
| 8 | #define __inline__ inline
|
|---|
| 9 | #define __restrict restrict
|
|---|
| 10 | #define __thread _Thread_local
|
|---|
| 11 | #define __extension__
|
|---|
| 12 | #define __asm__(X)
|
|---|
| 13 | #define __signed__ signed
|
|---|
| 14 | #define __volatile volatile
|
|---|
| 15 | #define __typeof__ typeof
|
|---|
| 16 | #define __PRETTY_FUNCTION__ (void*)0
|
|---|
| 17 | #define alloca(size) __builtin_alloca (size)
|
|---|
| 18 |
|
|---|
| 19 | // Common pre-defined macros;
|
|---|
| 20 | // see https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
|
|---|
| 21 |
|
|---|
| 22 | #define __SIZE_TYPE__ size_t
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 | /**************************** types *****************************/
|
|---|
| 26 | typedef struct {int id;} __builtin_va_list;
|
|---|
| 27 | typedef unsigned long int size_t;
|
|---|
| 28 |
|
|---|
| 29 | /**************************** functions *****************************/
|
|---|
| 30 | static inline unsigned int __builtin_bswap32 (unsigned int __bsx);
|
|---|
| 31 | static inline unsigned long int __builtin_bswap64 (unsigned long int __bsx__bsx);
|
|---|
| 32 | double __builtin_huge_val(void);
|
|---|
| 33 | float __builtin_huge_valf(void);
|
|---|
| 34 | long double __builtin_huge_vall(void);
|
|---|
| 35 | void* __builtin_alloca(size_t);
|
|---|
| 36 | size_t __builtin_strlen(const char *str);
|
|---|
| 37 | float __builtin_inff (void);
|
|---|
| 38 | float __builtin_nanf (const char *str);
|
|---|
| 39 | int __builtin_constant_p(int);
|
|---|
| 40 | #endif
|
|---|