From 42cc98a86649339a461133d2a3bcb216303dd996 Mon Sep 17 00:00:00 2001 From: Bill Hoffman <bill.hoffman@kitware.com> Date: Fri, 8 Apr 2005 08:34:22 -0400 Subject: [PATCH] BUG: fix build on mingw --- SystemTools.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SystemTools.cxx b/SystemTools.cxx index 914d39d..8048953 100644 --- a/SystemTools.cxx +++ b/SystemTools.cxx @@ -46,6 +46,11 @@ #if defined(_WIN32) && (defined(_MSC_VER) || defined(__BORLANDC__) || defined(__MINGW32__)) #include <io.h> +// 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 <windows.h> #include <direct.h> #define _unlink unlink -- GitLab