diff options
-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, |