in reply to Writing portable code
Or (perhaps):
4. I could use Inline::C or XS:
Cheers,
Rob
4. I could use Inline::C or XS:
This avoids any runtime or compile-time determination of the OS. (It was already determined when the script/module was built.) And only the one file !void f(void) { #ifdef _WIN32 /* code */ #else /* other code */ #endif }
Cheers,
Rob
|
---|
In Section
Seekers of Perl Wisdom