On Fri, May 04, 2012 at 11:57:42AM -0500, Craig A. Berry wrote:
> I've been taking a swing at compiling Perl with the HP C++ compiler for 
> OpenVMS.[1]  There are a number of wrinkles to iron out, one of which boils 
> down to:
> 
> $ type try.c
> #define dNOOP extern int Perl___notused(void)
> #define XSPROTO(name) void name(void)
> #define XS(name) extern "C" XSPROTO(name)

C++ has allowed mixed statements and declarations since its creation,
how about:

 #ifdef __cplusplus
 #define dNOOP
 #else
 #define dNOOP extern int Perl___notused(void)
 #endif

Tony

Reply via email to