From 833a7a20a5d186f80a897d20aa2719c9c903ab54 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Tue, 14 Jul 2015 08:01:46 +0000 Subject: [PATCH] Fix inline array declaration for MSVC --- src/meta/bfstm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/meta/bfstm.c b/src/meta/bfstm.c index 620fbbe1..f0e2d6dd 100644 --- a/src/meta/bfstm.c +++ b/src/meta/bfstm.c @@ -1,5 +1,6 @@ #include "meta.h" #include "../util.h" +#include "../stack_alloc.h" VGMSTREAM * init_vgmstream_bfstm(STREAMFILE *streamFile) { VGMSTREAM * vgmstream = NULL; @@ -132,7 +133,8 @@ VGMSTREAM * init_vgmstream_bfstm(STREAMFILE *streamFile) { } if (vgmstream->coding_type == coding_NGC_DSP) { - off_t coef_offset[channel_count]; + VARDECL(off_t, coef_offset); + ALLOC(coef_offset, channel_count, off_t); off_t coeff_ptr_table = read_32bitBE(info_offset + 0x1c, streamFile) + info_offset + 8; // Getting pointer for coefficient pointer table for (i = 0; i < channel_count; i++) {