Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #3872 from WalterBright/fix23213
Browse files Browse the repository at this point in the history
fix Issue 23213 - ImportC - variable length array does not compile
  • Loading branch information
WalterBright authored Jul 7, 2022
2 parents 651389b + dee0164 commit 66a34df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/importc.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,8 @@
* Define it to do what other C compilers do.
*/
#define __builtin_offsetof(t,i) ((typeof(sizeof(0)))((char *)&((t *)0)->i - (char *)0))

/***************************
* C11 6.10.8.3 Conditional feature macros
*/
#define __STDC_NO_VLA__ 1

0 comments on commit 66a34df

Please sign in to comment.