Author: particle
Date: Mon Dec 8 19:32:59 2008
New Revision: 33686
Modified:
branches/pdd22io_part2/src/pmc/filehandle.pmc
Log:
[pmc] FileHandle pmc get_fd() method updated to check for PIO_OS_STDIO. windows now builds and passes expected tests. allison++
Modified: branches/pdd22io_part2/src/pmc/filehandle.pmc
==============================================================================
--- branches/pdd22io_part2/src/pmc/filehandle.pmc (original)
+++ branches/pdd22io_part2/src/pmc/filehandle.pmc Mon Dec 8 19:32:59 2008
@@ -512,18 +512,18 @@
=item C<METHOD get_fd()>
Retrieve the integer file descriptor for the FileHandle (only available on
-Unix-based platforms that use integer file descriptors).
+platforms that use integer file descriptors).
=cut
*/
METHOD get_fd() {
-#ifdef PIO_OS_UNIX
+#ifndef PIO_OS_STDIO
INTVAL os_handle;
GET_ATTR_os_handle(INTERP, SELF, os_handle);
RETURN(INTVAL os_handle);
-#endif /*PIO_OS_UNIX*/
+#endif /*PIO_OS_STDIO*/
RETURN(INTVAL -1);