1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:07:46 +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:
Andreas Kling 2019-12-20 22:56:42 +01:00
parent 6c2c3d00a3
commit 44bc4008b7
4 changed files with 6 additions and 8 deletions

View file

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