mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +00:00
Ports/gettext: Remove unnecessary wctype patch
This commit is contained in:
parent
08cb49c2bd
commit
435c53ee1c
Notes:
sideshowbarker
2024-07-17 02:06:40 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/435c53ee1c Pull-request: https://github.com/SerenityOS/serenity/pull/20772 Reviewed-by: https://github.com/timschumi ✅
|
@ -1,32 +0,0 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Ali Mohammad Pur <ali.mpfard@gmail.com>
|
||||
Date: Mon, 16 May 2022 15:45:32 +0430
|
||||
Subject: [PATCH] Stub out some wctype functions
|
||||
|
||||
---
|
||||
gettext-tools/gnulib-lib/fnmatch.c | 12 ++++++++++++
|
||||
1 file changed, 12 insertions(+)
|
||||
|
||||
diff --git a/gettext-tools/gnulib-lib/fnmatch.c b/gettext-tools/gnulib-lib/fnmatch.c
|
||||
index b33a127d9802be15eeafef4622e63aac709bef8e..87f1f7c218c1708f84f3e4394eaa219e1d7c5858 100644
|
||||
--- a/gettext-tools/gnulib-lib/fnmatch.c
|
||||
+++ b/gettext-tools/gnulib-lib/fnmatch.c
|
||||
@@ -112,6 +112,18 @@ typedef ptrdiff_t idx_t;
|
||||
# define CHAR_CLASS_MAX_LENGTH 256
|
||||
#endif
|
||||
|
||||
+#ifdef __serenity__
|
||||
+wctype_t wctype(const char*)
|
||||
+{
|
||||
+ asm("int3");
|
||||
+}
|
||||
+
|
||||
+int iswctype(wint_t, wctype_t)
|
||||
+{
|
||||
+ asm("int3");
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
#define IS_CHAR_CLASS(string) wctype (string)
|
||||
|
||||
/* Avoid depending on library functions or files
|
|
@ -1,11 +1,6 @@
|
|||
# Patches for gettext on SerenityOS
|
||||
|
||||
## `0001-Stub-out-some-wctype-functions.patch`
|
||||
|
||||
Stub out some wctype functions
|
||||
|
||||
|
||||
## `0002-libtool-Enable-shared-library-support-for-SerenityOS.patch`
|
||||
## `0001-libtool-Enable-shared-library-support-for-SerenityOS.patch`
|
||||
|
||||
libtool: Enable shared library support for SerenityOS
|
||||
|
||||
|
|
Loading…
Reference in a new issue