Hacker News new | ask | show | jobs
by flohofwoe 1137 days ago
The common workaround isn't too bad:

    typedef struct { float x, y; } vec2;
...or if forward declaration is needed via a named struct:

    typedef struct vec2 { float x, y; } vec2;