1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:37:47 +00:00

Reduce dependence on STL.

This commit is contained in:
Andreas Kling 2018-10-16 12:10:01 +02:00
parent 0c1a4e8de3
commit fd708a4cb1
8 changed files with 48 additions and 34 deletions

View file

@ -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;
}