mirror of
https://github.com/php/php-src.git
synced 2024-12-02 14:24:10 +08:00
Reuse strcasestr implementation from libmagic
This commit is contained in:
parent
5295c35f69
commit
cf45479a19
@ -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");
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user