Subversion Repositories Kolibri OS

Rev

Rev 9552 | Rev 9620 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8687 turbocat 1
#ifndef _STDDEF_H_
2
#define _STDDEF_H_
3
 
4
typedef __SIZE_TYPE__ size_t;
5
typedef __PTRDIFF_TYPE__ ssize_t;
6
typedef __WCHAR_TYPE__ wchar_t;
7
typedef __PTRDIFF_TYPE__ ptrdiff_t;
8
typedef __PTRDIFF_TYPE__ intptr_t;
9
typedef __SIZE_TYPE__ uintptr_t;
10
 
11
#ifndef __int8_t_defined
12
#define __int8_t_defined
13
typedef signed char int8_t;
14
typedef signed short int int16_t;
15
typedef signed int int32_t;
16
typedef signed long long int int64_t;
17
typedef unsigned char uint8_t;
18
typedef unsigned short int uint16_t;
19
typedef unsigned int uint32_t;
20
typedef unsigned long long int uint64_t;
21
typedef int64_t intmax_t;
22
typedef uint64_t uintmax_t;
23
#endif
24
 
25
#ifndef NULL
26
    #define NULL ((void*)0)
27
#endif
28
 
8787 turbocat 29
#ifdef _BUILD_LIBC
8687 turbocat 30
    #define _FUNC(func) func
31
#else
32
    #define _FUNC(func) (*func)
33
#endif
34
 
35
#define offsetof(type, field) ((size_t)&((type *)0)->field)
36
 
9558 turbocat 37
#endif /* _STDDEF_H_ */