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