mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47: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:
parent
6c2c3d00a3
commit
44bc4008b7
4 changed files with 6 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue