diff options
author | KWSys Robot <kwrobot@kitware.com> | 2015-06-15 13:50:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-06-16 12:48:52 (GMT) |
commit | da4cddd787500b9da71e7c7877de9a17c6a7d1fc (patch) | |
tree | 820333b160ec6b24b4209a2d6cd5da710c97e15a | |
parent | 6cafd8ed0bc8458ba2c6eb0e792c894cf4f37f90 (diff) | |
download | CMake-da4cddd787500b9da71e7c7877de9a17c6a7d1fc.zip CMake-da4cddd787500b9da71e7c7877de9a17c6a7d1fc.tar.gz CMake-da4cddd787500b9da71e7c7877de9a17c6a7d1fc.tar.bz2 |
KWSys 2015-06-15 (d217407c)
Extract upstream KWSys using the following shell commands.
$ git archive --prefix=upstream-kwsys/ d217407c | tar x
$ git shortlog --no-merges --abbrev=8 --format='%h %s' 8533a79b..d217407c
Brad King (1):
d217407c SystemTools: Fix preprocessor check WIN32 => _WIN32
-rw-r--r-- | SystemTools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SystemTools.cxx b/SystemTools.cxx index c834e34..fed1c9c 100644 --- a/SystemTools.cxx +++ b/SystemTools.cxx @@ -4408,7 +4408,7 @@ bool SystemTools::FileIsFullPath(const char* in_name, size_t len) bool SystemTools::GetShortPath(const kwsys_stl::string& path, kwsys_stl::string& shortPath) { -#if defined(WIN32) && !defined(__CYGWIN__) +#if defined(_WIN32) && !defined(__CYGWIN__) const int size = int(path.size()) +1; // size of return char *tempPath = new char[size]; // create a buffer DWORD ret; |