From f4fae1b9f6745dcbc17d22f14bdc84c57548416f Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Fri, 2 Dec 2022 20:07:36 +0100 Subject: [PATCH] Add some workarounds for the msvc compiler --- examples/utils.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/utils.h b/examples/utils.h index da8a65b..0fb2712 100644 --- a/examples/utils.h +++ b/examples/utils.h @@ -26,6 +26,12 @@ extern "C" { #endif /* __cplusplus */ +#ifdef _MSC_VER +#define snprintf _snprintf +#define strcasecmp _stricmp +#define strncasecmp _strnicmp +#endif + #if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) #define FUNCTION __func__ #else