MSVC corrections thanks to Norbert Szabó

This commit is contained in:
hooper114
2009-08-06 18:48:42 +00:00
parent 22dec4892c
commit 776154d3fe
7 changed files with 29 additions and 26 deletions

View File

@ -503,12 +503,14 @@ int japan_post(struct zint_symbol *symbol, unsigned char source[])
int writer, loopey, inter_posn, i, sum, check;
char check_char;
char inter[23];
#ifdef _MSC_VER
char* local_source;
#endif
input_length = ustrlen(source);
#ifndef _MSC_VER
char local_source[input_length + 1];
#else
char* local_source = (char*)_alloca(input_length + 1);
local_source = (char*)_alloca(input_length + 1);
#endif
inter_posn = 0;