[Lldb-commits] [lldb] f3f4387 - [lldb][NFC] Fix compilation issue on windows (#76453)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 4 00:39:54 PST 2024
Author: gmh
Date: 2024-01-04T08:39:50Z
New Revision: f3f4387e02b0ed637b5d843e8937116334329a65
URL: https://github.com/llvm/llvm-project/commit/f3f4387e02b0ed637b5d843e8937116334329a65
DIFF: https://github.com/llvm/llvm-project/commit/f3f4387e02b0ed637b5d843e8937116334329a65.diff
LOG: [lldb][NFC] Fix compilation issue on windows (#76453)
Added:
Modified:
lldb/source/Plugins/Process/Windows/Common/TargetThreadWindows.cpp
lldb/unittests/Thread/ThreadTest.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Process/Windows/Common/TargetThreadWindows.cpp b/lldb/source/Plugins/Process/Windows/Common/TargetThreadWindows.cpp
index ad67e764fe10f2..a69c10081ff190 100644
--- a/lldb/source/Plugins/Process/Windows/Common/TargetThreadWindows.cpp
+++ b/lldb/source/Plugins/Process/Windows/Common/TargetThreadWindows.cpp
@@ -29,8 +29,8 @@
using namespace lldb;
using namespace lldb_private;
-using GetThreadDescriptionFunctionPtr = HRESULT
-WINAPI (*)(HANDLE hThread, PWSTR *ppszThreadDescription);
+using GetThreadDescriptionFunctionPtr =
+ HRESULT(WINAPI *)(HANDLE hThread, PWSTR *ppszThreadDescription);
TargetThreadWindows::TargetThreadWindows(ProcessWindows &process,
const HostThread &thread)
diff --git a/lldb/unittests/Thread/ThreadTest.cpp b/lldb/unittests/Thread/ThreadTest.cpp
index 4c660e9815c3ef..542585969c07b1 100644
--- a/lldb/unittests/Thread/ThreadTest.cpp
+++ b/lldb/unittests/Thread/ThreadTest.cpp
@@ -34,8 +34,8 @@ using namespace lldb;
namespace {
#ifdef _WIN32
-using SetThreadDescriptionFunctionPtr = HRESULT
-WINAPI (*)(HANDLE hThread, PCWSTR lpThreadDescription);
+using SetThreadDescriptionFunctionPtr =
+ HRESULT(WINAPI *)(HANDLE hThread, PCWSTR lpThreadDescription);
static SetThreadDescriptionFunctionPtr SetThreadName;
#endif
More information about the lldb-commits
mailing list