From e4d9c623d3baee50a5bfbc87cba81b0d2d87ee26 Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Thu, 26 Sep 2013 09:26:17 +0200 Subject: [PATCH] Fix build of check-formats on MSVC Fixes check-formats.obj : error LNK2019: unresolved external symbol _strcasecmp referenced in function _format_from_string check-formats.obj : error LNK2019: unresolved external symbol _snprintf referenced in function _list_operators --- test/utils.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/utils.h b/test/utils.h index 28b7193..ebb14d9 100644 --- a/test/utils.h +++ b/test/utils.h @@ -6,6 +6,11 @@ #include "pixman-private.h" /* For 'inline' definition */ #include "utils-prng.h" +#if defined(_MSC_VER) +#define snprintf _snprintf +#define strcasecmp _stricmp +#endif + #define ARRAY_LENGTH(A) ((int) (sizeof (A) / sizeof ((A) [0]))) /* A primitive pseudorandom number generator,