No strcasecmp function with MSVC

The MSVC compiler does not have the strcasecmp(x, y) function, which is a
case insensitve string compare function.  Instead, MSVC has a similar function,
lstrcmpi(x, y).  Modified config.h to use this function when building with
MSVC.
This commit is contained in:
Jason Erickson 2011-06-05 15:20:19 -06:00 committed by Daniele Varrazzo
parent 442a0606fe
commit dd7ee7093a

View File

@ -136,6 +136,8 @@ static int pthread_mutex_init(pthread_mutex_t *mutex, void* fake)
* in libxml2 code */
#define isinf(x) ((_fpclass(x) == _FPCLASS_PINF) ? 1 \
: ((_fpclass(x) == _FPCLASS_NINF) ? -1 : 0))
#define strcasecmp(x, y) lstrcmpi(x, y)
#endif
#endif