File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1335,7 +1335,7 @@ static nmbs_error handle_read_file_record(nmbs_t* nmbs) {
13351335 uint16_t record_number ;
13361336 uint16_t record_length ;
13371337 }
1338- #ifdef __STDC_NO_VLA__
1338+ #if defined( __STDC_NO_VLA__ ) || defined( _MSC_VER )
13391339 subreq [35 ]; // 245 / subreq_header_size
13401340#else
13411341 subreq [subreq_count ];
@@ -1553,7 +1553,7 @@ static nmbs_error handle_read_write_registers(nmbs_t* nmbs) {
15531553 if (err != NMBS_ERROR_NONE )
15541554 return err ;
15551555
1556- #ifdef __STDC_NO_VLA__
1556+ #if defined( __STDC_NO_VLA__ ) || defined( _MSC_VER )
15571557 uint16_t registers [0x007B ];
15581558#else
15591559 uint16_t registers [byte_count_write / 2 ];
@@ -1596,7 +1596,7 @@ static nmbs_error handle_read_write_registers(nmbs_t* nmbs) {
15961596 }
15971597
15981598 if (!nmbs -> msg .broadcast ) {
1599- #ifdef __STDC_NO_VLA__
1599+ #if defined( __STDC_NO_VLA__ ) || defined( _MSC_VER )
16001600 uint16_t regs [125 ];
16011601#else
16021602 uint16_t regs [read_quantity ];
You can’t perform that action at this time.
0 commit comments