Skip to content

Commit af70358

Browse files
committed
patch 8.1.0855: cannot build xxd with MSVC 10
Problem: Cannot build xxd with MSVC 10. Solution: Move declaration to start of block.
1 parent d8c56a0 commit af70358

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,8 @@ static char *(features[]) =
783783

784784
static int included_patches[] =
785785
{ /* Add new patch number below this line */
786+
/**/
787+
855,
786788
/**/
787789
854,
788790
/**/

src/xxd/xxd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ main(int argc, char *argv[])
472472
unsigned long displayoff = 0;
473473
static char l[LLEN+1]; /* static because it may be too big for stack */
474474
char *pp;
475+
int addrlen = 9;
475476

476477
#ifdef AMIGA
477478
/* This program doesn't work when started from the Workbench */
@@ -820,7 +821,6 @@ main(int argc, char *argv[])
820821
else /* hextype == HEX_BITS */
821822
grplen = 8 * octspergrp + 1;
822823

823-
int addrlen = 9;
824824
e = 0;
825825
while ((length < 0 || n < length) && (e = getc(fp)) != EOF)
826826
{

0 commit comments

Comments
 (0)