Make zint compile on MS-VC6. Adopt makefiles to new file list.

This commit is contained in:
Harald Oehlmann 2019-12-05 19:19:37 +01:00
parent 5fe97772cb
commit 045a9e3b00
7 changed files with 27 additions and 21 deletions

View file

@ -171,7 +171,7 @@ static void define_mode(unsigned int gbdata[], const size_t length, char* mode,
#ifndef _MSC_VER
char char_modes[length][GM_NUM_MODES];
#else
char* char_modes = (char*) _alloca(length * GM_NUM_MODES);
char** char_modes = (char**) _alloca(length * GM_NUM_MODES);
#endif
memset(char_modes, 0, length * GM_NUM_MODES);