Skip to content

Commit 670a81a

Browse files
committed
Use global functions
1 parent 8130f41 commit 670a81a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Support/Windows/Threading.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static HMODULE LoadSystemModuleSecure(LPCWSTR lpModuleName) {
130130
Buf.append(lpModuleName, lpModuleName + std::wcslen(lpModuleName));
131131
Buf.push_back(0);
132132

133-
return GetModuleHandleW(Buf.data());
133+
return ::GetModuleHandleW(Buf.data());
134134
}
135135

136136
SetThreadPriorityResult llvm::set_thread_priority(ThreadPriority Priority) {
@@ -143,8 +143,8 @@ SetThreadPriorityResult llvm::set_thread_priority(ThreadPriority Priority) {
143143
_In_reads_bytes_(ThreadInformationSize) PVOID ThreadInformation,
144144
ULONG ThreadInformationSize);
145145
static const auto pfnSetThreadInformation =
146-
(SetThreadInformation_t)GetProcAddress(kernelMod,
147-
"SetThreadInformation");
146+
(SetThreadInformation_t)::GetProcAddress(kernelMod,
147+
"SetThreadInformation");
148148

149149
if (pfnSetThreadInformation) {
150150
auto setThreadInformation = [](ULONG ControlMaskAndStateMask) {
@@ -153,7 +153,7 @@ SetThreadPriorityResult llvm::set_thread_priority(ThreadPriority Priority) {
153153
state.ControlMask = ControlMaskAndStateMask;
154154
state.StateMask = ControlMaskAndStateMask;
155155
return pfnSetThreadInformation(
156-
GetCurrentThread(), ThreadPowerThrottling, &state, sizeof(state));
156+
::GetCurrentThread(), ThreadPowerThrottling, &state, sizeof(state));
157157
};
158158

159159
// Use EcoQoS for ThreadPriority::Background available (running on most

0 commit comments

Comments
 (0)