mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:07:44 +00:00
AK: Apply changes for the Bootstrapper environment
This commit is contained in:
parent
88cf46dc98
commit
8bdb08c354
11 changed files with 43 additions and 37 deletions
|
@ -29,7 +29,7 @@
|
|||
#include <AK/Types.h>
|
||||
#include <AK/kstdio.h>
|
||||
|
||||
#ifndef KERNEL
|
||||
#if !defined(KERNEL) && !defined(BOOTSTRAPPER)
|
||||
# include <AK/ScopedValueRollback.h>
|
||||
# include <AK/StringView.h>
|
||||
# include <errno.h>
|
||||
|
@ -44,7 +44,7 @@ class StringView;
|
|||
class LogStream {
|
||||
public:
|
||||
LogStream()
|
||||
#ifndef KERNEL
|
||||
#if !defined(KERNEL) && !defined(BOOTSTRAPPER)
|
||||
: m_errno_restorer(errno)
|
||||
#endif
|
||||
{
|
||||
|
@ -54,7 +54,7 @@ public:
|
|||
virtual void write(const char*, int) const = 0;
|
||||
|
||||
private:
|
||||
#ifndef KERNEL
|
||||
#if !defined(KERNEL) && !defined(BOOTSTRAPPER)
|
||||
ScopedValueRollback<int> m_errno_restorer;
|
||||
#endif
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue