in reply to Re^2: Defining an XS symbol in the Makefile.PL
in thread Defining an XS symbol in the Makefile.PL
It has been a while since I have developed on Windows, but if I recall correctly, the special variant if $^O eq 'MSWin32' is:
WriteMakefile( .... DEFINE => q["-DMY_FORMAT=""%.16e"""], .... );
Since Makefile.PL is actually a Perl program, these can be combined as:
WriteMakefile( .... DEFINE => $^O eq 'MSWin32' ? q["-DMY_FORMAT=""%.16e"""] : q['-DMY_FO +RMAT="%.16e"'], .... );
|
---|
In Section
Seekers of Perl Wisdom