1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:57:45 +00:00

Import very modest Userland.

This commit is contained in:
Andreas Kling 2018-10-22 14:06:22 +02:00
parent 4cbf079a17
commit 63764b3a65
23 changed files with 81 additions and 27 deletions

View file

@ -1,7 +1,7 @@
#include "ELFImage.h"
#include <AK/kstdio.h>
#ifdef SERENITY_KERNEL
#ifdef SERENITY
ELFImage::ELFImage(ByteBuffer&& buffer)
: m_buffer(buffer)
{
@ -136,7 +136,7 @@ const char* ELFImage::tableString(unsigned offset) const
const char* ELFImage::rawData(unsigned offset) const
{
#ifdef SERENITY_KERNEL
#ifdef SERENITY
return reinterpret_cast<const char*>(m_buffer.pointer()) + offset;
#else
return reinterpret_cast<const char*>(m_file.pointer()) + offset;