fixed strcasecmp error on windows platforms.

This commit is contained in:
Aart Stuurman 2018-01-29 17:29:27 +01:00
parent 343cbfdff8
commit 99974d36d3
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,11 @@
#include <stdint.h> #include <stdint.h>
#include <math.h> #include <math.h>
// fix strcasecmp on non linux platforms
#if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64) || defined(__WINDOWS__)) && !defined(__CYGWIN__)
#define strcasecmp _stricmp
#endif
// forward declarations // forward declarations
#include "amqpcpp/classes.h" #include "amqpcpp/classes.h"