mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-26 19:28:59 +00:00
AK: Add support for mlibc in LexicalPath
This commit is contained in:
parent
939374a037
commit
b4b7264fa5
Notes:
sideshowbarker
2024-07-17 04:50:55 +09:00
Author: https://github.com/Dennisbonke 🔰
Commit: b4b7264fa5
Pull-request: https://github.com/SerenityOS/serenity/pull/15358
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/linusg
1 changed files with 5 additions and 0 deletions
|
@ -10,6 +10,11 @@
|
|||
#include <AK/String.h>
|
||||
#include <AK/Vector.h>
|
||||
|
||||
// On Linux distros that use mlibc `basename` is defined as a macro that expands to `__mlibc_gnu_basename` or `__mlibc_gnu_basename_c`, so we undefine it.
|
||||
#if defined(AK_OS_LINUX) && defined(basename)
|
||||
# undef basename
|
||||
#endif
|
||||
|
||||
namespace AK {
|
||||
|
||||
class LexicalPath {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue