c++ alias for anonymous c type
<p>I am keen to minimise dependency on a third-party header (<a href="http://kissfft.hg.sourceforge.net/hgweb/kissfft/kissfft/file/b354a59534b0/kiss_fft.h" rel="nofollow" title="kiss_fft.h">kiss_fft.h</a>). There is an <i>anonymous struct</i> defined within the header and I would really like to use my own <i>alias</i> (or some vague equivalent) interchangeably in my code.</p>

<p>The external definition that I oughtn't change:</p>

<pre><code>typedef struct {
    float r;
    float i;
} kiss_fft_cpx;
</code></pre>

<p>My first attempt:</p>

<pre><code>typedef kiss_fft_cpx FTBuffer;
// yields error: 'kiss_fft_cpx' does not name a type
</code></pre>

<p>My second attempt:</p>

<pre><code>struct FTBuffer : public kiss_fft_cpx {};
// yields error: expected class-name before '{' token
</code></pre>

<p>I suppose my problem is that <b>kiss_fft_cpx</b> is a variable and not a type, but perhaps there's a workaround you know of...?</p>

<p>I have searched for solutions here, and on the wider web, but nothing is jumping out. I am hoping that this is just a gap in my knowledge, but accept that there may be no advisable solution. Optimistic thanks in advance!</p>
