Windows: #196 MinGW/MSYS instructions; INTERNAL and printf %zu Windows-compat fixes

This commit is contained in:
gitlost 2020-06-18 15:51:57 +01:00
parent 9db5dd15c2
commit d921cb11fb
3 changed files with 112 additions and 13 deletions

View file

@ -55,7 +55,7 @@
#define ustrcpy(target, source) strcpy((char *) (target), (const char *) (source))
#define ustrcat(target, source) strcat((char *) (target), (const char *) (source))
#if defined(__GNUC__) && !defined(ZINT_TEST)
#if defined(__GNUC__) && !defined(_WIN32) && !defined(ZINT_TEST)
#define INTERNAL __attribute__ ((visibility ("hidden")))
#else
#define INTERNAL

View file

@ -808,7 +808,7 @@ static int ultra_generate_codewords(struct zint_symbol *symbol, const unsigned c
mode[crop_length] = '\0';
if (symbol->debug & ZINT_DEBUG_PRINT) {
printf("Mode: %s (%zu)\n", mode, strlen(mode));
printf("Mode: %s (%d)\n", mode, (int) strlen(mode));
}
/* Use results from test to perform actual mode switching */