]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkSystem.h
*** empty log message ***
[bbtk.git] / kernel / src / bbtkSystem.h
index 7f7df45103a67e24d9b0712ddb44222397bcd6fd..c9015c208b47169e758f5c7d5aa0d98c6ff5bf91 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkSystem.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:14 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2008/11/20 17:41:41 $
+  Version:   $Revision: 1.11 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -211,9 +211,25 @@ namespace bbtk
 #if defined(_WIN32)
 #define VALID_FILE_SEPARATOR "\\"
 #define INVALID_FILE_SEPARATOR "/"
+#define VALID_FILE_SEPARATOR_CHAR '\\'
+#define INVALID_FILE_SEPARATOR_CHAR '/'
 #else
 #define INVALID_FILE_SEPARATOR "\\"
 #define VALID_FILE_SEPARATOR "/"
+#define INVALID_FILE_SEPARATOR_CHAR '\\'
+#define VALID_FILE_SEPARATOR_CHAR '/'
 #endif
 
 #endif
+
+
+//----------------------------
+#ifndef _WIN32
+#include <unistd.h> //for access, unlink
+#else
+#include <io.h> //for _access on Win32
+#endif
+
+#ifdef _MSC_VER
+# define access _access
+#endif