diff options
author | Andrea Canciani <ranma42@gmail.com> | 2013-09-26 09:26:17 +0200 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2013-10-09 14:23:11 +0200 |
commit | e4d9c623d3baee50a5bfbc87cba81b0d2d87ee26 (patch) | |
tree | bbb75a11dad9a0312374a2e363174d2ca1d4dde2 | |
parent | 96ad6ebd8b8481aaa603d14953edb96504658eb7 (diff) |
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
-rw-r--r-- | test/utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/utils.h b/test/utils.h index 28b7193e..ebb14d9e 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, |