note
JRHeisey
I thought I would add a caveat to this thread so others can find it.
<p>
I use the Perl API on Windows with Visual Studio C++.
While moving from Perl 5.8 to 5.20 the Perl API headers generated compile time errors.
</p><p>
The first error was:
</p><code>
c:\perl.5.20\lib\core\op_reg_common.h(58) : error C2144: syntax error : 'void' should be preceded by ';'
</code>
<p>
SE keywords: op_reg_common.h void preceded
</p><p>
Someone in the IRC irc.perl.org #xs chat channel referenced here.
http://sourceforge.net/p/staf/support-requests/180/
</p><p>
Basically I needed to edit the config.h file from
</p><code>
#define PERL_STATIC_INLINE static __inline__ /**/
</code>
to
<code>
#define PERL_STATIC_INLINE static __inline /**/
</code>
I don't know why it wasn't defined with ifdefs for each compiler.
<p>
J.R. Heisey
</p>
249803
249821