Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Defining an XS symbol in the Makefile.PL

by jcb (Vicar)
on Aug 18, 2019 at 06:41 UTC ( #11104634=note: print w/replies, xml ) Need Help??


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"'], .... );

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11104634]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2020-09-28 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (144 votes). Check out past polls.

    Notices?