summaryrefslogtreecommitdiffstats
path: root/Source/cmFileLockWin32.cxx
diff options
context:
space:
mode:
authorClemens Wasser <clemens.wasser@gmail.com>2023-06-16 17:15:56 (GMT)
committerClemens Wasser <clemens.wasser@gmail.com>2023-06-22 16:11:45 (GMT)
commit870390ee811d51b3b35f50c8aba2eaca3cce2fda (patch)
treee2c16c3b68dd2bb64757606f597425a608611c5b /Source/cmFileLockWin32.cxx
parent88e7ad0084bd6a2fa6f032d7be1ee5d993440dcf (diff)
downloadCMake-870390ee811d51b3b35f50c8aba2eaca3cce2fda.zip
CMake-870390ee811d51b3b35f50c8aba2eaca3cce2fda.tar.gz
CMake-870390ee811d51b3b35f50c8aba2eaca3cce2fda.tar.bz2
cmFileLock: Remove expensive windows.h include
As cmFileLock.h gets includes 116 times on windows this saves many unnecessary and expensive windows.h includes
Diffstat (limited to 'Source/cmFileLockWin32.cxx')
-rw-r--r--Source/cmFileLockWin32.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileLockWin32.cxx b/Source/cmFileLockWin32.cxx
index 7bee5f2..244ade2 100644
--- a/Source/cmFileLockWin32.cxx
+++ b/Source/cmFileLockWin32.cxx
@@ -78,7 +78,7 @@ cmFileLockResult cmFileLock::LockWithTimeout(unsigned long seconds)
}
}
-BOOL cmFileLock::LockFile(DWORD flags)
+int cmFileLock::LockFile(int flags)
{
const DWORD reserved = 0;
const unsigned long len = static_cast<unsigned long>(-1);