Tassilo von Parseval wrote:



    #ifdef _WIN32
    #   define WIN32
    #endif

There's a gazillion of already pre-defined macros which help to identify
the platform and other features. There's a sourceforge project dedicated
to listing all those macros at <http://predef.sourceforge.net/>.


I had wondered whether such pre-defined symbols existed but was unable to find any reference to ones related to the OS. I'll bookmark that page.



How do I do that ? Is it something that gets addressed by the XS code ? Or is it something that needs to be addressed by makemaker ?


This is also an option. I use this technique in one of my modules. I
figure out the machine's byteorder and then do a

    WriteMakefile (
        ...
        DEFINE => "-D$BYTEORDER",
    );


I had tested that with: DEFINE => "WIN32",

It works considerably better if I:
DEFINE => "-DWIN32",
:-)

Thanks Tassilo. That pretty much answers the questions I asked (and also the questions that had yet to be asked :-)

Cheers,
Rob

--
Any emails containing attachments will be deleted from my ISP's mail server before I even get to see them. If you wish to email me an attachment, please provide advance warning so that I can make the necessary arrangements.




Reply via email to