diff stream/stream_file.c @ 30608:c05fbacce55f

Replace platform preprocessor check by HAVE_DOS_PATHS. This is both more elegant and more portable.
author komh
date Fri, 19 Feb 2010 09:14:01 +0000
parents ce0122361a39
children e10ba171be06
line wrap: on
line diff
--- a/stream/stream_file.c	Fri Feb 19 09:12:23 2010 +0000
+++ b/stream/stream_file.c	Fri Feb 19 09:14:01 2010 +0000
@@ -130,7 +130,7 @@
     return STREAM_ERROR;
   }
 
-#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__OS2__)
+#if HAVE_DOS_PATHS
   // extract '/' from '/x:/path'
   if( filename[ 0 ] == '/' && filename[ 1 ] && filename[ 2 ] == ':' )
     filename++;