summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/File.cpp
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2022-10-09 16:45:59 -0600
committerLinus Groh <mail@linusgroh.de>2022-10-10 12:23:12 +0200
commit1d533acbc0c87a7c5084af066677217b16d1334b (patch)
tree7dd5cedf41e9165cd6009a110a0e860e5465cd78 /Userland/Libraries/LibCore/File.cpp
parent539fb085513d6627319c3e9c86e90e5ae938f326 (diff)
downloadserenity-1d533acbc0c87a7c5084af066677217b16d1334b.zip
AK+Userland: Replace Linux, macOS, and *BSD macros with platform defines
We have such nice platform macros, let's clean up any remnants of manual __my_platform__ macros in LibCore, LibCompress and AK.
Diffstat (limited to 'Userland/Libraries/LibCore/File.cpp')
-rw-r--r--Userland/Libraries/LibCore/File.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCore/File.cpp b/Userland/Libraries/LibCore/File.cpp
index 94014771d9..d3e08c4fea 100644
--- a/Userland/Libraries/LibCore/File.cpp
+++ b/Userland/Libraries/LibCore/File.cpp
@@ -22,7 +22,7 @@
#endif
// On Linux distros that use glibc `basename` is defined as a macro that expands to `__xpg_basename`, so we undefine it
-#if defined(__linux__) && defined(basename)
+#if defined(AK_OS_LINUX) && defined(basename)
# undef basename
#endif