Zint has been pached for MSVC2010

This commit is contained in:
Arin Alexander
2016-03-22 15:49:35 +03:00
parent 58d2063438
commit 7a10231858
4 changed files with 25 additions and 12 deletions

View File

@@ -920,6 +920,7 @@ int grid_matrix(struct zint_symbol *symbol, unsigned char source[], int length)
#else
int* utfdata = (int *)_alloca((length + 1) * sizeof(int));
int* gbdata = (int *)_alloca((length + 1) * sizeof(int));
char* grid;
#endif
for(i = 0; i < 1460; i++) {
@@ -1041,7 +1042,7 @@ int grid_matrix(struct zint_symbol *symbol, unsigned char source[], int length)
#ifndef _MSC_VER
char grid[size * size];
#else
char* grid = (char *)_alloca((size * size) * sizeof(char));
grid = (char *)_alloca((size * size) * sizeof(char));
#endif
for(x = 0; x < size; x++) {