summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Torre <torreemanuele6@gmail.com>2020-08-01 07:18:24 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-01 10:44:42 +0200
commit6c1ba09fbdeb2c1df0593e017b944a5d2af767d8 (patch)
tree3d018e28a0431e50a60d2c25283af17c7c1295e8
parent5bf994d2d9fffa73f22f25f792e1482dc43a694e (diff)
downloadserenity-6c1ba09fbdeb2c1df0593e017b944a5d2af767d8.zip
AK: In Userspace.h, #if defined(KERNEL) => #ifdef KERNEL
-rw-r--r--AK/Userspace.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/Userspace.h b/AK/Userspace.h
index d499363de6..c1659821b1 100644
--- a/AK/Userspace.h
+++ b/AK/Userspace.h
@@ -42,7 +42,7 @@ public:
operator bool() const { return m_ptr; }
operator FlatPtr() const { return (FlatPtr)m_ptr; }
-#if defined(KERNEL)
+#ifdef KERNEL
Userspace(FlatPtr ptr)
: m_ptr(ptr)
{
@@ -60,7 +60,7 @@ public:
#endif
private:
-#if defined(KERNEL)
+#ifdef KERNEL
FlatPtr m_ptr { 0 };
#else
T m_ptr { nullptr };