[Issue 24641] ImportC: enum typedef before definition is not supported

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 30 08:35:39 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24641

--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
For reference I managed to find a very simple fix. I replaced the macro from:

---
#define BL_DEFINE_ENUM(NAME) typedef enum NAME NAME; enum NAME
---

to:

---
#define BL_DEFINE_ENUM(NAME) enum NAME
---

And then the preprocessed file can be imported into DMD nicely.

--


More information about the Digitalmars-d-bugs mailing list