mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-20 02:05:11 -04:00
MSVC corrections thanks to Norbert Szabó
This commit is contained in:
parent
22dec4892c
commit
776154d3fe
7 changed files with 29 additions and 26 deletions
|
@ -388,15 +388,17 @@ int gs1_compliant(int symbology)
|
|||
int ZBarcode_Encode(struct zint_symbol *symbol, unsigned char *source)
|
||||
{
|
||||
int error_number, error_buffer;
|
||||
error_number = 0;
|
||||
int input_length;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
unsigned char* preprocessed;
|
||||
#endif
|
||||
input_length = ustrlen(source);
|
||||
|
||||
error_number = 0;
|
||||
|
||||
#ifndef _MSC_VER
|
||||
unsigned char preprocessed[input_length];
|
||||
#else
|
||||
unsigned char* preprocessed = (unsigned char*)_alloca(input_length + 1);
|
||||
preprocessed = (unsigned char*)_alloca(input_length + 1);
|
||||
#endif
|
||||
|
||||
if(ustrlen(source) == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue