diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index 174110e07d..6fe3516a01 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -427,6 +427,7 @@ if (BUILD_LAGOM) SOURCES ${LIBUNICODE_SOURCES} ${UNICODE_DATA_SOURCES} ) target_compile_definitions(LagomUnicode PRIVATE ENABLE_UNICODE_DATA=$) + target_link_libraries(LagomUnicode -ldl) # WASM file(GLOB LIBWASM_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibWasm/*/*.cpp") diff --git a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeData.cpp b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeData.cpp index c34ecf4b10..53cc9fb2e1 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeData.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeData.cpp @@ -574,8 +574,6 @@ enum class @name@ : @underlying@ {)~~~"); generator.append(R"~~~( #pragma once -#include -#include #include #include #include @@ -605,28 +603,6 @@ struct SpecialCasing { Condition condition { Condition::None }; }; -namespace Detail { - -Optional code_point_display_name(u32 code_point); - -u32 canonical_combining_class(u32 code_point); - -u32 simple_uppercase_mapping(u32 code_point); -u32 simple_lowercase_mapping(u32 code_point); -Span special_case_mapping(u32 code_point); - -bool code_point_has_general_category(u32 code_point, GeneralCategory general_category); -Optional general_category_from_string(StringView general_category); - -bool code_point_has_property(u32 code_point, Property property); -Optional property_from_string(StringView property); - -bool code_point_has_script(u32 code_point, Script script); -bool code_point_has_script_extension(u32 code_point, Script script); -Optional