From a5be6b84067dc3fcc10088e5d003610f46d2b1f5 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 8 Apr 2005 08:34:22 -0400 Subject: BUG: fix build on mingw --- Source/kwsys/SystemTools.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 0e42684..41bdd45 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -46,6 +46,11 @@ #if defined(_WIN32) && (defined(_MSC_VER) || defined(__BORLANDC__) || defined(__MINGW32__)) #include +// This is to get GetLongPathName which is not really only +// in windows > 0x0500, but there is a bug in the mingw winbase.h file +#ifdef __MINGW32__ +#define WINVER 0x0500 +#endif #include #include #define _unlink unlink -- cgit v0.12