Commit d217407c authored by Brad King's avatar Brad King
Browse files

SystemTools: Fix preprocessor check WIN32 => _WIN32

The latter is predefined by Windows toolchains and is more reliable.

Change-Id: I598092af2965b4660b57d490caecdb678f5147ca
parent 8533a79b
...@@ -4408,7 +4408,7 @@ bool SystemTools::FileIsFullPath(const char* in_name, size_t len) ...@@ -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) 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 const int size = int(path.size()) +1; // size of return
char *tempPath = new char[size]; // create a buffer char *tempPath = new char[size]; // create a buffer
DWORD ret; DWORD ret;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment