mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
AK+Everywhere: Remove ifdefs for WASM and Emscripten
Building the Ladybird code for Emscripten doesn't really make sense and I doubt it is even possible with all the dependencies now.
This commit is contained in:
parent
3166dabcd6
commit
17d3b881d3
Notes:
github-actions[bot]
2025-11-07 10:30:12 +00:00
Author: https://github.com/cqundefine
Commit: 17d3b881d3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6631
Reviewed-by: https://github.com/gmta ✅
6 changed files with 7 additions and 25 deletions
|
|
@ -164,7 +164,7 @@ ErrorOr<int> anon_create([[maybe_unused]] size_t size, [[maybe_unused]] int opti
|
|||
TRY(close(fd));
|
||||
return Error::from_errno(saved_errno);
|
||||
}
|
||||
#elif defined(AK_OS_BSD_GENERIC) || defined(AK_OS_EMSCRIPTEN) || defined(AK_OS_HAIKU)
|
||||
#elif defined(AK_OS_BSD_GENERIC) || defined(AK_OS_HAIKU)
|
||||
static size_t shared_memory_id = 0;
|
||||
|
||||
auto name = ByteString::formatted("/shm-{}-{}", getpid(), shared_memory_id++);
|
||||
|
|
@ -807,8 +807,6 @@ ErrorOr<ByteString> current_executable_path()
|
|||
if (sizeof(info.name) > sizeof(path))
|
||||
return Error::from_errno(ENAMETOOLONG);
|
||||
strlcpy(path, info.name, sizeof(path) - 1);
|
||||
#elif defined(AK_OS_EMSCRIPTEN)
|
||||
return Error::from_string_literal("current_executable_path() unknown on this platform");
|
||||
#else
|
||||
# warning "Not sure how to get current_executable_path on this platform!"
|
||||
// GetModuleFileName on Windows, unsure about OpenBSD.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue