mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:17:44 +00:00
Build: Get rid of the USERLAND define
Let's simplify things. There is now only KERNEL. To see if you're on Serenity, check if __serenity__ is defined.
This commit is contained in:
parent
6c2c3d00a3
commit
44bc4008b7
4 changed files with 6 additions and 8 deletions
|
@ -3,7 +3,7 @@
|
|||
#include <AK/Types.h>
|
||||
#include <AK/kstdio.h>
|
||||
|
||||
#ifdef USERLAND
|
||||
#ifndef KERNEL
|
||||
# include <AK/ScopedValueRollback.h>
|
||||
# include <AK/StringView.h>
|
||||
# include <errno.h>
|
||||
|
@ -18,7 +18,7 @@ class StringView;
|
|||
class LogStream {
|
||||
public:
|
||||
LogStream()
|
||||
#ifdef USERLAND
|
||||
#ifndef KERNEL
|
||||
: m_errno_restorer(errno)
|
||||
#endif
|
||||
{
|
||||
|
@ -28,7 +28,7 @@ public:
|
|||
virtual void write(const char*, int) const = 0;
|
||||
|
||||
private:
|
||||
#ifdef USERLAND
|
||||
#ifndef KERNEL
|
||||
ScopedValueRollback<int> m_errno_restorer;
|
||||
#endif
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue