From a90a5cba08fdf6c0ceb95101c275108a152a3aed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:35:37 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- memory/build/FdPrintf.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'memory/build/FdPrintf.h') diff --git a/memory/build/FdPrintf.h b/memory/build/FdPrintf.h index 257084243b..ad333c77fd 100644 --- a/memory/build/FdPrintf.h +++ b/memory/build/FdPrintf.h @@ -7,6 +7,12 @@ #ifndef __FdPrintf_h__ #define __FdPrintf_h__ +#ifdef _WIN32 +typedef void* platform_handle_t; +#else +typedef int platform_handle_t; +#endif + /* We can't use libc's (f)printf because it would reenter in replace_malloc, * So use a custom and simplified version. Only %p, %zu, %s and %% are * supported, %zu, %s, support width specifiers. @@ -18,7 +24,7 @@ * APIs is that they don't support O_APPEND in a multi-process-safe way, * while CreateFile does. */ -void FdPrintf(intptr_t aFd, const char* aFormat, ...) +void FdPrintf(platform_handle_t aFd, const char* aFormat, ...) #ifdef __GNUC__ __attribute__((format(printf, 2, 3))) #endif -- cgit v1.2.3