mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
LibUnicode: Use weak symbols to provide default IDNA defintions
Rather than using #ifdef blocks, update the fallback IDNA definitions to use weak symbols to match the rest of LibUnicode / LibLocale.
This commit is contained in:
parent
1f0e24bc3b
commit
43e9dc0500
Notes:
sideshowbarker
2024-07-17 02:06:40 +09:00
Author: https://github.com/trflynn89
Commit: 43e9dc0500
Pull-request: https://github.com/SerenityOS/serenity/pull/22240
3 changed files with 5 additions and 16 deletions
|
@ -18,14 +18,7 @@
|
|||
|
||||
namespace Unicode::IDNA {
|
||||
|
||||
#if not ENABLE_UNICODE_DATA
|
||||
|
||||
Optional<Mapping> get_idna_mapping(u32)
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
#endif
|
||||
Optional<Mapping> __attribute__((weak)) get_idna_mapping(u32) { return {}; }
|
||||
|
||||
struct ProcessingResult {
|
||||
Vector<String> result {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue