mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-24 20:14:28 -04:00
Make command line version compile with MS-VC6 and QT-Version with MS-VC8
This commit is contained in:
parent
2e5fe31ebf
commit
b7b7564457
14 changed files with 198 additions and 52 deletions
|
@ -927,6 +927,7 @@ int grid_matrix(struct zint_symbol *symbol, unsigned char source[], int length)
|
|||
int utfdata[length + 1];
|
||||
int gbdata[length + 1];
|
||||
#else
|
||||
char* grid;
|
||||
int* utfdata = (int *)_alloca((length + 1) * sizeof(int));
|
||||
int* gbdata = (int *)_alloca((length + 1) * sizeof(int));
|
||||
#endif
|
||||
|
@ -1050,7 +1051,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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue