mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-22 03:05:11 -04:00
Windows: #196 MinGW/MSYS instructions; INTERNAL and printf %zu Windows-compat fixes
This commit is contained in:
parent
9db5dd15c2
commit
d921cb11fb
3 changed files with 112 additions and 13 deletions
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue