1
0
mirror of https://git.code.sf.net/p/zint/code synced 2025-12-19 02:47:06 +00:00

Make compile with MS-VC6

This commit is contained in:
Harald Oehlmann
2017-10-16 19:26:54 +02:00
parent bfb183e5df
commit f83e5b1501
22 changed files with 98 additions and 64 deletions

View File

@@ -1240,12 +1240,13 @@ int data_matrix_200(struct zint_symbol *symbol,const unsigned char source[], con
}
#endif
{ // placement
int x, y, NC, NR, *places;
int x, y, NC, NR, *places;
unsigned char *grid;
NC = W - 2 * (W / FW);
NR = H - 2 * (H / FH);
places = (int*) malloc(NC * NR * sizeof (int));
ecc200placement(places, NR, NC);
unsigned char *grid = (unsigned char*) malloc(W * H);
grid = (unsigned char*) malloc(W * H);
memset(grid, 0, W * H);
for (y = 0; y < H; y += FH) {
for (x = 0; x < W; x++)
@@ -1296,7 +1297,7 @@ int data_matrix_200(struct zint_symbol *symbol,const unsigned char source[], con
symbol->rows = H;
symbol->width = W;
return error_number;
}