diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-04-08 12:34:22 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-04-08 12:34:22 (GMT) |
commit | a5be6b84067dc3fcc10088e5d003610f46d2b1f5 (patch) | |
tree | 75342fbe62b3c9c1ac69b003f18c44819cfa0b7f /Source | |
parent | 98e1bc3efa381367a35cd766f429fdf005537996 (diff) | |
download | CMake-a5be6b84067dc3fcc10088e5d003610f46d2b1f5.zip CMake-a5be6b84067dc3fcc10088e5d003610f46d2b1f5.tar.gz CMake-a5be6b84067dc3fcc10088e5d003610f46d2b1f5.tar.bz2 |
BUG: fix build on mingw
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
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 <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 |