diff options
Diffstat (limited to 'p1.patch')
-rw-r--r-- | p1.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/p1.patch b/p1.patch new file mode 100644 index 000000000000..2a40d8c13cac --- /dev/null +++ b/p1.patch @@ -0,0 +1,36 @@ +--- src/mytetra_dev-v.1.44.160/thirdParty/mimetex/mimetex.c 2023-11-19 11:15:53.686542658 +0400 ++++ src/mytetra_dev-v.1.44.160/thirdParty/mimetex/mimetex.c 2023-11-19 11:15:19.953209838 +0400 +@@ -422,11 +422,6 @@ + header files and macros + -------------------------------------------------------------------------- */ + +-// #define _GNU_SOURCE /* for strcasestr() in string.h */ +-// char *strcasestr(); /* non-standard extension */ +-// #define _GNU_SOURCE char *strcasestr(const char *haystack, const char *needle); +-const char *strcasestr(const char *s1, const char *s2); +- + /* --- standard headers --- */ + #include <stdio.h> + #include <stdlib.h> +@@ -18307,21 +18302,5 @@ + return 0; + } + +-const char *strcasestr(const char *s1, const char *s2) +-{ +- // if either pointer is null +- if (s1 == 0 || s2 == 0) +- return 0; +- // the length of the needle +- size_t n = strlen(s2); +- // iterate through the string +- while(*s1) +- // if the compare which is case insensitive is a match, return the pointer +- if(!mystrncmpi(s1++,s2,n)) +- return (s1-1); +- // no match was found +- return 0; +-} +- + /* ======================= END-OF-FILE MIMETEX.C ========================= */ + |