This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 50122a93b build(c/driver_manager): fix build on Windows-ARM64 (#4591)
50122a93b is described below

commit 50122a93beb4c6f88e7ac5f72eb8a05b3a46428f
Author: Jeroen Ooms <[email protected]>
AuthorDate: Mon Jul 27 06:33:37 2026 +0200

    build(c/driver_manager): fix build on Windows-ARM64 (#4591)
    
    Fixes #4590
    
    ---------
    
    Co-authored-by: David Li <[email protected]>
---
 c/driver_manager/adbc_driver_manager.cc  | 4 ++++
 go/adbc/drivermgr/adbc_driver_manager.cc | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/c/driver_manager/adbc_driver_manager.cc 
b/c/driver_manager/adbc_driver_manager.cc
index 9ac56c83d..7013083cc 100644
--- a/c/driver_manager/adbc_driver_manager.cc
+++ b/c/driver_manager/adbc_driver_manager.cc
@@ -34,6 +34,10 @@
 #include <ShlObj.h>
 #include <libloaderapi.h>
 #include <string.h>  // _wcsnicmp
+// Without STRSAFE_NO_DEPRECATE, strsafe.h redefines strcpy/sprintf/etc. as
+// poison macros, which breaks libc++'s <cstring>/<cstdio>/<cwchar> headers
+// (using ::strcpy;) on the Rtools clang-aarch64 toolchain.
+#define STRSAFE_NO_DEPRECATE
 #include <strsafe.h>
 #include <locale>
 #else
diff --git a/go/adbc/drivermgr/adbc_driver_manager.cc 
b/go/adbc/drivermgr/adbc_driver_manager.cc
index 9ac56c83d..7013083cc 100644
--- a/go/adbc/drivermgr/adbc_driver_manager.cc
+++ b/go/adbc/drivermgr/adbc_driver_manager.cc
@@ -34,6 +34,10 @@
 #include <ShlObj.h>
 #include <libloaderapi.h>
 #include <string.h>  // _wcsnicmp
+// Without STRSAFE_NO_DEPRECATE, strsafe.h redefines strcpy/sprintf/etc. as
+// poison macros, which breaks libc++'s <cstring>/<cstdio>/<cwchar> headers
+// (using ::strcpy;) on the Rtools clang-aarch64 toolchain.
+#define STRSAFE_NO_DEPRECATE
 #include <strsafe.h>
 #include <locale>
 #else

Reply via email to