From 99974d36d3f723fd56d68c2c07a1d2f1db929d80 Mon Sep 17 00:00:00 2001 From: Aart Stuurman Date: Mon, 29 Jan 2018 17:29:27 +0100 Subject: [PATCH] fixed strcasecmp error on windows platforms. --- include/amqpcpp.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/amqpcpp.h b/include/amqpcpp.h index 9b2b097..85b7867 100644 --- a/include/amqpcpp.h +++ b/include/amqpcpp.h @@ -28,6 +28,11 @@ #include #include +// fix strcasecmp on non linux platforms +#if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64) || defined(__WINDOWS__)) && !defined(__CYGWIN__) + #define strcasecmp _stricmp +#endif + // forward declarations #include "amqpcpp/classes.h"