diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-20 22:56:42 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-20 22:59:11 +0100 |
commit | 44bc4008b76e4480490a976d12665c3697f2c85b (patch) | |
tree | 58e8fbd4b42f810ae4ba8687b467ef16484ce292 /AK/LogStream.h | |
parent | 6c2c3d00a39a6e2798497426168eabd2c1e7a702 (diff) | |
download | serenity-44bc4008b76e4480490a976d12665c3697f2c85b.zip |
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.
Diffstat (limited to 'AK/LogStream.h')
-rw-r--r-- | AK/LogStream.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/AK/LogStream.h b/AK/LogStream.h index fd311523a3..e18e3fef5a 100644 --- a/AK/LogStream.h +++ b/AK/LogStream.h @@ -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 }; |