[libc-commits] [libc] [LibC][RPC] Define LIBC_COPT_PRINTF_DISABLE_WIDE on Windows (PR #178482)

Jinsong Ji via libc-commits libc-commits at lists.llvm.org
Wed Jan 28 10:53:52 PST 2026


https://github.com/jsji created https://github.com/llvm/llvm-project/pull/178482

https://github.com/llvm/llvm-project/pull/176110

RPC headers are being used directly from offload.
The default setting in config.json won't take effect.
Set it in the rpc_server.h


>From 01c6b6bec19e8d763b51d91337fb04527b05960f Mon Sep 17 00:00:00 2001
From: Jinsong Ji <jinsong.ji at intel.com>
Date: Wed, 28 Jan 2026 19:50:18 +0100
Subject: [PATCH] [LibC][RPC] Define LIBC_COPT_PRINTF_DISABLE_WIDE on Windows

https://github.com/llvm/llvm-project/pull/176110

RPC headers are being used directly from offload.
The default setting in config.json won't take effect.
Set it in the rpc_server.h
---
 libc/src/__support/RPC/rpc_server.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libc/src/__support/RPC/rpc_server.h b/libc/src/__support/RPC/rpc_server.h
index d06700a787e94..87b3f46e7f9df 100644
--- a/libc/src/__support/RPC/rpc_server.h
+++ b/libc/src/__support/RPC/rpc_server.h
@@ -37,6 +37,10 @@
 #define LIBC_COPT_PRINTF_DISABLE_INDEX_MODE
 #define LIBC_COPT_PRINTF_DISABLE_STRERROR
 
+#if defined(_WIN32)
+#define LIBC_COPT_PRINTF_DISABLE_WIDE
+#endif
+
 // The 'long double' type is 8 bytes.
 #define LIBC_TYPES_LONG_DOUBLE_IS_FLOAT64
 



More information about the libc-commits mailing list