dbghelp: Remove superfluous PATH_MAX defines

André Hentschel nerv at dawncrow.de
Tue Oct 11 12:13:40 CDT 2011


to be sure i also tried to undefine PATH_MAX in that files without any harm
---
 dlls/dbghelp/coff.c       |    4 +---
 dlls/dbghelp/dwarf.c      |    3 ---
 dlls/dbghelp/elf_module.c |    3 ---
 dlls/dbghelp/msc.c        |    4 +---
 4 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/dlls/dbghelp/coff.c b/dlls/dbghelp/coff.c
index 9fc3ec9..54bd278 100644
--- a/dlls/dbghelp/coff.c
+++ b/dlls/dbghelp/coff.c
@@ -42,9 +42,7 @@
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif
-#ifndef PATH_MAX
-#define PATH_MAX MAX_PATH
-#endif
+
 #include <stdarg.h>
 #include "windef.h"
 #include "winbase.h"
diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index 20bd080..2a16650 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -39,9 +39,6 @@
 # include <unistd.h>
 #endif
 #include <stdio.h>
-#ifndef PATH_MAX
-#define PATH_MAX MAX_PATH
-#endif
 #include <assert.h>
 #include <stdarg.h>
 
diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c
index 969e8c0..e4c6e44 100644
--- a/dlls/dbghelp/elf_module.c
+++ b/dlls/dbghelp/elf_module.c
@@ -42,9 +42,6 @@
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif
-#ifndef PATH_MAX
-#define PATH_MAX MAX_PATH
-#endif
 
 #include "dbghelp_private.h"
 
diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c
index 9f9a53e..53bf6bf 100644
--- a/dlls/dbghelp/msc.c
+++ b/dlls/dbghelp/msc.c
@@ -45,9 +45,7 @@
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif
-#ifndef PATH_MAX
-#define PATH_MAX MAX_PATH
-#endif
+
 #include <stdarg.h>
 #include "windef.h"
 #include "winbase.h"
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list