define NAME_MAX on windows

This commit is contained in:
Arvid Norberg 2008-11-17 18:27:32 +00:00
parent 0e9bf1e7cf
commit a41cf27e32
1 changed files with 6 additions and 0 deletions

View File

@ -90,5 +90,11 @@ POSSIBILITY OF SUCH DAMAGE.
#define TORRENT_USE_WPATH 0
#endif
#ifdef TORRENT_WINDOWS
// this is the maximum number of characters in a
// path element / filename on windows
#define NAME_MAX 255
#endif
#endif // TORRENT_CONFIG_HPP_INCLUDED