From efa5dc99a702e60fde9de0def39c4e193f6f6c38 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Wed, 5 Nov 2003 23:37:40 +0000 Subject: [PATCH] Fix compilation for GCC type compilers that take .c files to be ANSI-C only, not a hybrid C/C++. This immediately affects MinGW (gcc). [SVN r20687] --- src/engine/pathunix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/pathunix.c b/src/engine/pathunix.c index ad8fc9ec4..ced341d40 100644 --- a/src/engine/pathunix.c +++ b/src/engine/pathunix.c @@ -272,9 +272,9 @@ path_parent( PATHNAME *f ) #include #include -#ifndef INVALID_FILE_ATTRIBUTES +/* The definition of this in winnt.h is not ANSI-C compatible. */ +#undef INVALID_FILE_ATTRIBUTES #define INVALID_FILE_ATTRIBUTES ((DWORD)-1) -#endif DWORD ShortPathToLongPath(LPCTSTR lpszShortPath,LPTSTR lpszLongPath,DWORD