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.cpp | |
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.cpp')
-rw-r--r-- | AK/LogStream.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/LogStream.cpp b/AK/LogStream.cpp index 912c90b412..16f32d4894 100644 --- a/AK/LogStream.cpp +++ b/AK/LogStream.cpp @@ -36,7 +36,7 @@ const LogStream& operator<<(const LogStream& stream, const void* value) return stream << String::format("%p", value); } -#ifdef USERLAND +#if defined (__serenity__) && !defined(KERNEL) static TriState got_process_name = TriState::Unknown; static char process_name_buffer[256]; #endif @@ -44,7 +44,7 @@ static char process_name_buffer[256]; DebugLogStream dbg() { DebugLogStream stream; -#ifdef USERLAND +#if defined (__serenity__) && !defined(KERNEL) if (got_process_name == TriState::Unknown) { if (get_process_name(process_name_buffer, sizeof(process_name_buffer)) == 0) got_process_name = TriState::True; |