Ports/gettext: Remove unnecessary wctype patch

This commit is contained in:
Tim Ledbetter 2023-08-25 18:49:41 +01:00 committed by Tim Schumacher
parent 08cb49c2bd
commit 435c53ee1c
Notes: sideshowbarker 2024-07-17 02:06:40 +09:00
3 changed files with 1 additions and 38 deletions

View file

@ -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

View file

@ -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