diff options
author | Michael Steinert <mike.steinert@gmail.com> | 2012-05-25 14:51:41 -0600 |
---|---|---|
committer | Michael Steinert <mike.steinert@gmail.com> | 2012-05-27 10:39:58 -0600 |
commit | 6b9627fe2f520d6c0dd36851b9e384bc176108c5 (patch) | |
tree | e5edec4fb864ca379f6d529d8082283f8dffd5c9 | |
parent | f8b02344d9607f1b8471d172a82a5e71677752c2 (diff) | |
download | rabbitmq-c-github-ask-6b9627fe2f520d6c0dd36851b9e384bc176108c5.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, |