diff --git a/SystemTools.cxx b/SystemTools.cxx
index c834e34d1172d2144f8963d7e5b136ef686163f5..fed1c9c387c59b981f2c6f56ebffdc2e1dbbe0be 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;