2018-01-07 HaO Make compile with MS-VC2017 [Ticket 135]

This commit is contained in:
Harald Oehlmann 2019-01-07 11:03:37 +01:00
parent eda3f4b114
commit dc2e0b35a6
2 changed files with 3 additions and 1 deletions

View File

@ -397,7 +397,7 @@ int emf_plot(struct zint_symbol *symbol) {
str = symbol->vector->strings; str = symbol->vector->strings;
this_text = 0; this_text = 0;
while (str) { while (str) {
this_string[this_text] = malloc(bump_up(str->length + 1) * 2); this_string[this_text] = (unsigned char *) malloc(bump_up(str->length + 1) * 2);
text[this_text].type = 0x00000054; // EMR_EXTTEXTOUTW text[this_text].type = 0x00000054; // EMR_EXTTEXTOUTW
text[this_text].size = 76 + (6 * bump_up(str->length + 1)); text[this_text].size = 76 + (6 * bump_up(str->length + 1));
text[this_text].bounds.top = 0; // ignored text[this_text].bounds.top = 0; // ignored

View File

@ -326,6 +326,7 @@
<ClCompile Include="..\backend\imail.c" /> <ClCompile Include="..\backend\imail.c" />
<ClCompile Include="..\backend\large.c" /> <ClCompile Include="..\backend\large.c" />
<ClCompile Include="..\backend\library.c" /> <ClCompile Include="..\backend\library.c" />
<ClCompile Include="..\backend\mailmark.c" />
<ClCompile Include="..\backend\maxicode.c" /> <ClCompile Include="..\backend\maxicode.c" />
<ClCompile Include="..\backend\medical.c" /> <ClCompile Include="..\backend\medical.c" />
<ClCompile Include="..\backend\pcx.c" /> <ClCompile Include="..\backend\pcx.c" />
@ -343,6 +344,7 @@
<ClCompile Include="..\backend\telepen.c" /> <ClCompile Include="..\backend\telepen.c" />
<ClCompile Include="..\backend\tif.c" /> <ClCompile Include="..\backend\tif.c" />
<ClCompile Include="..\backend\upcean.c" /> <ClCompile Include="..\backend\upcean.c" />
<ClCompile Include="..\backend\vector.c" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="..\backend\aztec.h" /> <ClInclude Include="..\backend\aztec.h" />