diff options
author | Michael Steinert <mike.steinert@gmail.com> | 2012-05-25 14:51:41 -0600 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2013-04-09 15:34:45 -0700 |
commit | da143199f54c169821cbf1a6fed0b078ff446978 (patch) | |
tree | 2967695dffe289d347f18dd60d2a38691c5af854 | |
parent | fb0285f720e5903d06e6d09bb607e9a0435a7e1a (diff) | |
download | rabbitmq-c-da143199f54c169821cbf1a6fed0b078ff446978.tar.gz |
Use `_stricmp` instead of `strcasecmp` for MSVC
Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
-rw-r--r-- | librabbitmq/amqp-openssl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/librabbitmq/amqp-openssl.c b/librabbitmq/amqp-openssl.c index 4e32b73..5e57d69 100644 --- a/librabbitmq/amqp-openssl.c +++ b/librabbitmq/amqp-openssl.c @@ -244,9 +244,15 @@ amqp_open_ssl_socket(amqp_connection_state_t state, goto error; } } +#ifdef _MSC_VER +#define strcasecmp _stricmp +#endif if (strcasecmp(host, (char *)utf8_value)) { goto error; } +#ifdef _MSC_VER +#undef strcasecmp +#endif sockfd = BIO_get_fd(self->bio, NULL); amqp_set_sockfd_full(state, sockfd, amqp_ssl_socket_writev, |