Mercurial > projects > dwt-linux
diff dwt/dwthelper/File.d @ 262:e10de397beb1
ADD version TANGOSVN
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 06 Jul 2008 15:33:12 +0200 |
parents | 380bad9f6852 |
children | d472fae79005 |
line wrap: on
line diff
--- a/dwt/dwthelper/File.d Thu Jul 03 21:20:33 2008 +0200 +++ b/dwt/dwthelper/File.d Sun Jul 06 15:33:12 2008 +0200 @@ -5,7 +5,12 @@ import dwt.dwthelper.utils; -static import tango.io.FileConst; +version(TANGOSVN) + static import tango.io.model.IFile; +} +else{ + static import tango.io.FileConst; +} static import tango.io.FilePath; static import tango.io.FileSystem; @@ -19,10 +24,18 @@ private tango.io.FilePath.FilePath mFilePath; static this(){ +version(TANGOSVN) + separator = tango.io.model.IFile.FileConst.PathSeparatorString; + separatorChar = tango.io.model.IFile.FileConst.PathSeparatorChar; + pathSeparator = tango.io.model.IFile.FileConst.SystemPathString; + pathSeparatorChar = tango.io.model.IFile.FileConst.SystemPathChar; +} +else{ separator = tango.io.FileConst.FileConst.PathSeparatorString; separatorChar = tango.io.FileConst.FileConst.PathSeparatorChar; pathSeparator = tango.io.FileConst.FileConst.SystemPathString; pathSeparatorChar = tango.io.FileConst.FileConst.SystemPathChar; +} } public this ( String pathname ){