forked from KolibriOS/kolibrios
6753818fc0
git-svn-id: svn://kolibrios.org@9811 a494cfbc-eb01-0410-851d-a64ba20cac60
31 lines
588 B
C
31 lines
588 B
C
#ifndef _STDDEF_H_
|
|
#define _STDDEF_H_
|
|
|
|
typedef __SIZE_TYPE__ size_t;
|
|
typedef __PTRDIFF_TYPE__ ssize_t;
|
|
typedef __WCHAR_TYPE__ wchar_t;
|
|
typedef __PTRDIFF_TYPE__ ptrdiff_t;
|
|
typedef __PTRDIFF_TYPE__ intptr_t;
|
|
typedef __SIZE_TYPE__ uintptr_t;
|
|
|
|
#ifndef NULL
|
|
#define NULL ((void*)0)
|
|
#endif
|
|
|
|
#ifdef _BUILD_LIBC
|
|
#define _FUNC(func) func
|
|
#else
|
|
#define _FUNC(func) (*func)
|
|
#endif
|
|
|
|
#define offsetof(type, field) ((size_t) & ((type*)0)->field)
|
|
|
|
#ifndef __stdcall
|
|
#define __stdcall __attribute__((stdcall))
|
|
#endif
|
|
|
|
#ifndef __cdecl
|
|
#define __cdecl __attribute__((cdecl))
|
|
#endif
|
|
|
|
#endif /* _STDDEF_H_ */ |