From c46ce72177bb8790c5070de38716204b02001eab Mon Sep 17 00:00:00 2001 From: szaka Date: Sun, 13 Jul 2008 13:56:38 +0000 Subject: [PATCH] move unused, conditional MAX_PATH define to the Win32 specific code --- include/ntfs-3g/dir.h | 4 ---- libntfs-3g/win32_io.c | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ntfs-3g/dir.h b/include/ntfs-3g/dir.h index 6d593c5c..2f5f76e6 100644 --- a/include/ntfs-3g/dir.h +++ b/include/ntfs-3g/dir.h @@ -29,10 +29,6 @@ #define PATH_SEP '/' -#ifndef MAX_PATH -#define MAX_PATH 1024 -#endif - /* * We do not have these under DJGPP, so define our version that do not conflict * with other S_IFs defined under DJGPP. diff --git a/libntfs-3g/win32_io.c b/libntfs-3g/win32_io.c index 90a7bda2..ed9fa521 100644 --- a/libntfs-3g/win32_io.c +++ b/libntfs-3g/win32_io.c @@ -52,6 +52,10 @@ typedef struct ntfs_volume ntfs_volume; #include "types.h" #include "device.h" +#ifndef MAX_PATH +#define MAX_PATH 1024 +#endif + #ifndef NTFS_BLOCK_SIZE #define NTFS_BLOCK_SIZE 512 #define NTFS_BLOCK_SIZE_BITS 9