Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by jcb (Hermit)
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 browsing the Monastery: (4)
As of 2019-09-22 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (273 votes). Check out past polls.

    Notices?