mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 10:53:44 +03:00
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:
parent
442a0606fe
commit
dd7ee7093a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user