X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ffilesystem%2Ffilename.h;h=c4820ed75c66b3b77298519569f4584f04da6598;hb=cf3d63de321ae4a18860c4be8a968eb906ddd2fe;hp=c1710c13e9328f66623abb911dfac745858468e6;hpb=858aef5a060ab5329bf4922eee55bf0119ef77f1;p=feisty_meow.git diff --git a/nucleus/library/filesystem/filename.h b/nucleus/library/filesystem/filename.h index c1710c13..c4820ed7 100644 --- a/nucleus/library/filesystem/filename.h +++ b/nucleus/library/filesystem/filename.h @@ -27,6 +27,22 @@ class status_info; // define useful constant for filesystem path length. #ifndef MAX_ABS_PATH #ifdef __WIN32__ + #define MAX_ABS_PATH MAX_PATH + #else + #ifdef __APPLE__ + #include + #else + #include + #endif + #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 #include #define MAX_ABS_PATH MAX_PATH #else @@ -37,9 +53,9 @@ class status_info; #endif #define MAX_ABS_PATH PATH_MAX #endif +*/ #endif - namespace filesystem { //! Provides operations commonly needed on file names.