--- 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 #include @@ -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 ========================= */