[Lldb-commits] [lldb] [lldb] Fixing warnings / win32 builds in MainLoop. (PR #146632)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 3 03:30:30 PDT 2025
================
@@ -42,12 +42,15 @@ typedef void *rwlock_t;
typedef void *process_t; // Process type is HANDLE
typedef void *thread_t; // Host thread type
typedef void *file_t; // Host file type
-typedef unsigned int __w64 socket_t; // Host socket type
+typedef uintptr_t socket_t; // Host socket type
typedef void *thread_arg_t; // Host thread argument type
typedef unsigned thread_result_t; // Host thread result type
typedef thread_result_t (*thread_func_t)(void *); // Host thread function type
typedef void *pipe_t; // Host pipe type is HANDLE
+// printf macro for file_t
+#define PRIuFT PRIuPTR
+
----------------
labath wrote:
Could we remove this part. It's technically a part of our public API. I'd recommend using llvm::formatv and LLDB_LOG (not LLDB_LOGF) to format these. It should not have this issue as it doesn't require a type specification.
https://github.com/llvm/llvm-project/pull/146632
More information about the lldb-commits
mailing list