This is an automated email from the ASF dual-hosted git repository. kou pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push: new e9b9042a05 GH-35483: [CI][C++] Add header for snprintf for Windows (#35484) e9b9042a05 is described below commit e9b9042a058333b68849a640b510e94413a29d91 Author: Will Jones <willjones...@gmail.com> AuthorDate: Tue May 9 21:01:07 2023 -0700 GH-35483: [CI][C++] Add header for snprintf for Windows (#35484) ### Rationale for this change Fixing failing nightlies. ### What changes are included in this PR? ### Are these changes tested? ### Are there any user-facing changes? * Closes: #35483 Authored-by: Will Jones <willjones...@gmail.com> Signed-off-by: Sutou Kouhei <k...@clear-code.com> --- python/pyarrow/src/arrow/python/platform.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/pyarrow/src/arrow/python/platform.h b/python/pyarrow/src/arrow/python/platform.h index f35979e3b8..e71c7ac853 100644 --- a/python/pyarrow/src/arrow/python/platform.h +++ b/python/pyarrow/src/arrow/python/platform.h @@ -32,4 +32,10 @@ #if _MSC_VER >= 1900 #undef timezone #endif + +// https://bugs.python.org/issue36020 +// TODO(wjones127): Can remove once we drop support for CPython 3.9 +#ifdef snprintf +#undef snprintf +#endif #endif