1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-24 12:26:00 +00:00

Make bakcend/dotcode.c, emf.c and tif.c compile with MS-VC6

This commit is contained in:
Harald Oehlmann
2017-03-28 18:06:08 +02:00
parent 939d4de4f0
commit 480e514754
4 changed files with 42 additions and 54 deletions

View File

@@ -57,6 +57,10 @@ int tif_pixel_plot(struct zint_symbol *symbol, char *pixelbuf) {
int free_memory;
int row, column;
FILE *tif_file;
#ifdef _MSC_VER
uint32_t* strip_offset;
uint32_t* strip_bytes;
#endif
tiff_header_t header;
tiff_ifd_t ifd;
@@ -84,8 +88,8 @@ int tif_pixel_plot(struct zint_symbol *symbol, char *pixelbuf) {
uint32_t strip_offset[strip_count];
uint32_t strip_bytes[strip_count];
#else
uint32_t* strip_offset = (uint32_t*) _alloca(strip_count);
uint32_t* strip_bytes = (uint32_t*) _alloca(strip_count);
strip_offset = (uint32_t*) _alloca(strip_count * sizeof(uint32_t));
strip_bytes = (uint32_t*) _alloca(strip_count * sizeof(uint32_t));
#endif
free_memory = 8;