summaryrefslogtreecommitdiff
path: root/src/libc/stdint.h
blob: d91f4f29f634ec967ca38c50e117844092daf33f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef STDINT_H
#define STDINT_H

#if defined( __PCC__ ) || defined( __TINYC__ )
// TODO: no stdint.h in pcc-libs/pcc or tcc, mock one, but this one is
// most likely very incorrect
typedef unsigned int uint32_t;
typedef signed int int32_t;
typedef unsigned short uint16_t;
typedef signed short int16_t;
typedef unsigned char uint8_t;
typedef signed char int8_t;
typedef uint32_t uintptr_t;
typedef unsigned long long int uint64_t;
typedef signed long long int int64_t;
#else
// gcc and clang provide a stdint.h
#include_next <stdint.h>
#endif

#endif // STDINT_H