projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added python as possible script type for aliases
[feisty_meow.git]
/
nucleus
/
library
/
filesystem
/
filename.h
diff --git
a/nucleus/library/filesystem/filename.h
b/nucleus/library/filesystem/filename.h
index d1f2fb4233253af5ccab6207da3853e46c2ac851..c4820ed75c66b3b77298519569f4584f04da6598 100644
(file)
--- a/
nucleus/library/filesystem/filename.h
+++ b/
nucleus/library/filesystem/filename.h
@@
-26,10
+26,21
@@
class status_info;
//hmmm: this doesn't really belong here, does it...
// define useful constant for filesystem path length.
#ifndef MAX_ABS_PATH
//hmmm: this doesn't really belong here, does it...
// define useful constant for filesystem path length.
#ifndef MAX_ABS_PATH
+ #ifdef __WIN32__
+ #define MAX_ABS_PATH MAX_PATH
+ #else
+ #ifdef __APPLE__
+ #include <sys/syslimits.h>
+ #else
+ #include <limits.h>
+ #endif
+ #define MAX_ABS_PATH PATH_MAX
+ #endif
+/*
#ifdef __WIN32__
// winsock support...
#ifdef __WIN32__
// winsock support...
- #undef FD_SETSIZE
- #define FD_SETSIZE 1000
+
//
#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>
// if you don't set this, you can only select on a default of 64 sockets.
#include <winsock2.h>
#include <windows.h>
@@
-42,9
+53,9
@@
class status_info;
#endif
#define MAX_ABS_PATH PATH_MAX
#endif
#endif
#define MAX_ABS_PATH PATH_MAX
#endif
+*/
#endif
#endif
-
namespace filesystem {
//! Provides operations commonly needed on file names.
namespace filesystem {
//! Provides operations commonly needed on file names.