From a41cf27e32bc11e6c7976cc639962dabb88af0b5 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 17 Nov 2008 18:27:32 +0000 Subject: [PATCH] define NAME_MAX on windows --- include/libtorrent/config.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/libtorrent/config.hpp b/include/libtorrent/config.hpp index d70e1b6bd..c722f4d89 100644 --- a/include/libtorrent/config.hpp +++ b/include/libtorrent/config.hpp @@ -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