January 11, 2023
https://issues.dlang.org/show_bug.cgi?id=23619

          Issue ID: 23619
           Summary: ImportC: Doesn't work with flecs.h
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Keywords: ImportC
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: brix@brix-verden.dk

https://github.com/SanderMertens/flecs/blob/master/flecs.h https://github.com/SanderMertens/flecs/blob/master/flecs.c

test.d:
import flecs;

$ dmd test.d
flecs.c(2484): Error: expression expected, not `{`
flecs.c(2484): Error: found `if` when expecting `)`
flecs.c(2484): Error: found `;` when expecting `)`
flecs.c(2484): Error: found `else` when expecting `;` following statement
flecs.c(2484): Error: no type for declarator before `)`
flecs.c(2485): Error: no type for declarator before `if`
flecs.c(2487): Error: no type for declarator before `}`
flecs.c(2495): Error: no type for declarator before `if`
flecs.c(2497): Error: no type for declarator before `return`
flecs.c(2498): Error: no type for declarator before `}`
flecs.c(2500): Error: no type-specifier for declarator
flecs.c(2506): Error: no type for declarator before `for`
flecs.c(2506): Error: no type for declarator before `(`
flecs.c(2506): Error: no type for declarator before `)`
flecs.c(2510): Error: no type for declarator before `if`
flecs.c(2512): Error: no type-specifier for declarator
flecs.c(2513): Error: no type for declarator before `}`
flecs.c(2513): Error: no type for declarator before `else`
flecs.c(2515): Error: no type for declarator before `}`
flecs.c(2519): Error: no type for declarator before `if`

--