Subversion Repositories Kolibri OS

Rev

Rev 9077 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8687 turbocat 1
#ifndef _STDINT_H_
2
#define _STDINT_H_
3
 
4
#include 
5
 
9766 turbocat 6
#define INT8_MIN  (-128)
7
#define INT8_MAX  (127)
8
#define UINT8_MAX (255)
8687 turbocat 9
 
9766 turbocat 10
#define INT16_MIN  (-32768)
11
#define INT16_MAX  (32767)
12
#define UINT16_MAX (65535)
8687 turbocat 13
 
9766 turbocat 14
#define INT32_MIN  (-2147483647L - 1)
15
#define INT32_MAX  (2147483647L)
16
#define UINT32_MAX (4294967295UL)
8687 turbocat 17
 
9766 turbocat 18
#define INT64_MAX  0x7fffffffffffffffLL
19
#define INT64_MIN  (-INT64_MAX - 1LL)
20
#define UINT64_MAX (__CONCAT(INT64_MAX, U) * 2ULL + 1ULL)
21
 
22
#ifndef __int8_t_defined
23
#define __int8_t_defined
24
typedef signed char int8_t;
25
typedef signed short int int16_t;
26
typedef signed int int32_t;
27
typedef signed long long int int64_t;
28
typedef unsigned char uint8_t;
29
typedef unsigned short int uint16_t;
30
typedef unsigned int uint32_t;
31
typedef unsigned long long int uint64_t;
32
typedef int64_t intmax_t;
33
typedef uint64_t uintmax_t;
8687 turbocat 34
#endif
35
 
9766 turbocat 36
#define SIZE_MAX UINT32_MAX
9077 turbocat 37
 
8687 turbocat 38
#endif /* _STDINT_H_*/