develop/ktcc: Post-SVN tidy
Some checks failed
Build system / Check kernel codestyle (pull_request) Successful in 25s
Build system / Build (pull_request) Failing after 27s

- Move source code from `trunk` into program root directory.
- Update build files.
This commit is contained in:
2025-05-23 17:49:05 +01:00
parent 46bcaca0b0
commit 42e77931bf
688 changed files with 17 additions and 17 deletions

View File

@@ -0,0 +1,39 @@
#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
/* FIXME: Now _FUNC is used in conio only.
This should be removed after revrite somme apps who use conio
(because these app use pointer dereferencing for conio)
*/
#define _FUNC(func) (func)
#define DLLAPI //__attribute__((dllexport)) // Comming soon(tcc not support yet)
#else
#define _FUNC(func) (*func) // FIXME: this needed for legacy reason (see above)
#define DLLAPI __attribute__((dllimport))
#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_ */