develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r33686 - branches/pdd22io_part2/src/pmc

From:
particle
Date:
December 8, 2008 19:33
Subject:
[svn:parrot] r33686 - branches/pdd22io_part2/src/pmc
Message ID:
20081209033301.3F7ECCB9AF@x12.develooper.com
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);
 



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About