From 790b6f20c210267fe14c51e987efab6eba296a3d Mon Sep 17 00:00:00 2001 From: Matthew Newhook Date: Tue, 14 Apr 2015 15:38:37 -0230 Subject: [PATCH] Fixed VS2010 compile error. --- directive.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/directive.c b/directive.c index c054316..900d66a 100644 --- a/directive.c +++ b/directive.c @@ -1254,9 +1254,10 @@ static void dump_repl( for (cp = dp->repl; (c = *cp++ & UCHARMAX) != EOS; ) { switch (c) { - case MAC_PARM: /* Parameter */ + case MAC_PARM: { /* Parameter */ + PARM parm; c = (*cp++ & UCHARMAX) - 1; - PARM parm = parms[ c]; + parm = parms[ c]; if ((numargs & VA_ARGS) && c == (numargs & ~AVA_ARGS) - 1) { mcpp_fputs( gcc2_va ? parm.name : "__VA_ARGS__" , FP2DEST( fp)); @@ -1266,6 +1267,7 @@ static void dump_repl( mcpp_fputc( *cp1++, FP2DEST( fp)); } break; + } case DEF_MAGIC: /* Else skip */ break;