diff arogue5/mdport.c @ 196:80a590e67206

Advanced Rogue 5: add and use md_fdopen(). Portability is improved.
author John "Elwin" Edwards
date Tue, 11 Aug 2015 15:15:09 -0400
parents 600873555ec0
children 61d1c9ac9be7
line wrap: on
line diff
--- a/arogue5/mdport.c	Tue Aug 11 13:13:08 2015 -0400
+++ b/arogue5/mdport.c	Tue Aug 11 15:15:09 2015 -0400
@@ -209,6 +209,15 @@
     return(fd);
 }
 
+FILE *
+md_fdopen(int fd, char *mode)
+{
+#ifdef _WIN32
+    return( _fdopen(fd, mode) );
+#else
+    return( fdopen(fd, mode) );
+#endif
+}
 
 int
 md_normaluser()