mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
AK: Add support for mlibc in LexicalPath
This commit is contained in:
committed by
Andrew Kaster
parent
939374a037
commit
b4b7264fa5
@@ -10,6 +10,11 @@
|
|||||||
#include <AK/String.h>
|
#include <AK/String.h>
|
||||||
#include <AK/Vector.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 {
|
namespace AK {
|
||||||
|
|
||||||
class LexicalPath {
|
class LexicalPath {
|
||||||
|
|||||||
Reference in New Issue
Block a user