Hi everyone,

While trying to port one of my XS-modules to Win32 (not cygwin, but 
native Win32 using VisualC) the linker finally bombs out with an 
unresolved external symbol _PerlIO_exportFILE. As some #ifdef tests 
have shown, a number of macros (or perhaps all of them) as described 
under "Co-existence with stdio" in perlapio.pod are undefined.

So how would I go about converting the macro

#define sv_to_file(sv) (PerlIO_exportFILE(IoIFP(sv_2io(sv)), NULL))

to something Windows would understand? I would be using 
PerlIO_fileno() instead but as far as I know there's no way to gain a FILE 
pointer from a file-descriptor (or else correct me) and the library wrapped 
by this XS explicitely needs a FILE*. The whole thing is supposed to 
eventually work with ActiveState's Perl.

Thanks for any insight,
Tassilo

Reply via email to