mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:07:34 +00:00
Reduce dependence on STL.
This commit is contained in:
parent
0c1a4e8de3
commit
fd708a4cb1
8 changed files with 48 additions and 34 deletions
|
@ -1,6 +1,10 @@
|
|||
#pragma once
|
||||
|
||||
#ifdef SERENITY_KERNEL
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
typedef uint8_t byte;
|
||||
typedef uint16_t word;
|
||||
|
@ -15,3 +19,8 @@ typedef int64_t signed_qword;
|
|||
constexpr unsigned KB = 1024;
|
||||
constexpr unsigned MB = KB * KB;
|
||||
constexpr unsigned GB = KB * KB * KB;
|
||||
|
||||
namespace std {
|
||||
typedef decltype(nullptr) nullptr_t;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue