updates from orpheus for windoze build
[feisty_meow.git] / nucleus / library / filesystem / filename.h
index f609f9016b0b14f85e8d5625d1da5d2b590d551d..ffbde48e67c18af09de92f70c19b3594c79922f7 100644 (file)
@@ -27,6 +27,17 @@ class status_info;
 // define useful constant for filesystem path length.
 #ifndef MAX_ABS_PATH 
   #ifdef __WIN32__
+    #define MAX_ABS_PATH MAX_PATH
+  #else
+    #define MAX_ABS_PATH PATH_MAX
+  #endif
+/*
+  #ifdef __WIN32__
+  // winsock support...
+//  #undef FD_SETSIZE
+//  #define FD_SETSIZE 1000
+    // if you don't set this, you can only select on a default of 64 sockets.
+  #include <winsock2.h>
     #include <windows.h>
     #define MAX_ABS_PATH MAX_PATH
   #else
@@ -37,9 +48,9 @@ class status_info;
     #endif
     #define MAX_ABS_PATH PATH_MAX
   #endif
+*/
 #endif
 
-
 namespace filesystem {
 
 //! Provides operations commonly needed on file names.
@@ -56,6 +67,8 @@ public:
     /*!< the "name_of_file" can itself be a directory. */
   filename(const filename &to_copy);  //!< copy constructor.
 
+  DEFINE_CLASS_NAME("filename");
+
   virtual ~filename();
 
   bool good() const;