mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:37:34 +00:00
Make it possible to build the Kernel on a macOS host.
It still requires an ELF compiler and linker, but at least it builds. I need to get rid of the "Unix" namespace. This does a lot of that.
This commit is contained in:
parent
44036f32bc
commit
85b886c2e0
31 changed files with 88 additions and 94 deletions
|
@ -11,18 +11,23 @@ typedef signed short signed_word;
|
|||
typedef signed int signed_dword;
|
||||
typedef signed long long int signed_qword;
|
||||
|
||||
typedef dword size_t;
|
||||
typedef signed_dword ssize_t;
|
||||
typedef unsigned long size_t;
|
||||
typedef long ssize_t;
|
||||
|
||||
static_assert(sizeof(size_t) == sizeof(dword));
|
||||
static_assert(sizeof(ssize_t) == sizeof(signed_dword));
|
||||
|
||||
typedef signed_dword ptrdiff_t;
|
||||
|
||||
typedef byte uint8_t;
|
||||
typedef word uint16_t;
|
||||
typedef dword uint32_t;
|
||||
typedef qword uint64_t;
|
||||
|
||||
typedef signed_byte int8_t;
|
||||
typedef signed_word int16_t;
|
||||
typedef signed_dword int32_t;
|
||||
typedef signed_qword int64_t;
|
||||
|
||||
#else
|
||||
#include <stdint.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue