utils.h: Fixed absent definition of MAX_PATH by copying the definition from libntfs's headers (dir.h).

edge.strict_endians
Erik Larsson 2010-01-15 09:33:54 +01:00
parent 9b6523ab42
commit ee3297311d
1 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,11 @@ static __inline__ const char *ntfs_libntfs_version(void) {
return "ntfs-3g unknown version (TODO: find or create a way to extract ntfs-3g version from library)";
}
/* MAX_PATH definition was missing in ntfs-3g's headers. */
#ifndef MAX_PATH
#define MAX_PATH 1024
#endif
/**
* linux-ntfs's ntfs_mbstoucs has different semantics, so we emulate it with
* ntfs-3g's.