Subversion Repositories Kolibri OS

Rev

Rev 9810 | 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 NULL
9766 turbocat 12
#define NULL ((void*)0)
8687 turbocat 13
#endif
14
 
8787 turbocat 15
#ifdef _BUILD_LIBC
9766 turbocat 16
#define _FUNC(func) func
8687 turbocat 17
#else
9811 Coldy 18
#define _FUNC(func) (*func)
8687 turbocat 19
#endif
20
 
9766 turbocat 21
#define offsetof(type, field) ((size_t) & ((type*)0)->field)
8687 turbocat 22
 
9620 turbocat 23
#ifndef __stdcall
9766 turbocat 24
#define __stdcall __attribute__((stdcall))
9620 turbocat 25
#endif
26
 
27
#ifndef __cdecl
9766 turbocat 28
#define __cdecl __attribute__((cdecl))
9620 turbocat 29
#endif
30
 
9558 turbocat 31
#endif /* _STDDEF_H_ */