Reuse strcasestr implementation from libmagic

This commit is contained in:
Anatol Belski 2018-04-29 19:39:57 +02:00
parent 5295c35f69
commit cf45479a19
2 changed files with 1 additions and 5 deletions

View File

@ -9,7 +9,7 @@ if (PHP_FILEINFO != 'no') {
encoding.c fsmagic.c funcs.c \
is_tar.c magic.c print.c \
readcdf.c softmagic.c der.c \
buffer.c";
strcasestr.c buffer.c";
EXTENSION('fileinfo', 'fileinfo.c', true, "/I" + configure_module_dirname + "/libmagic /I" + configure_module_dirname);
ADD_SOURCES(configure_module_dirname + '\\libmagic', LIBMAGIC_SOURCES, "fileinfo");

View File

@ -79,10 +79,6 @@ static const struct nv {
{ NULL, NULL, },
};
#ifdef PHP_WIN32
# define strcasestr strstr
#endif
static const struct cv {
uint64_t clsid[2];
const char *mime;