Skip to content

Commit

Permalink
apacheGH-35483: [CI][C++] Add header for snprintf for Windows (apache…
Browse files Browse the repository at this point in the history
…#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: apache#35483

Authored-by: Will Jones <willjones127@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
wjones127 authored and liujiacheng777 committed May 11, 2023
1 parent b3f22fc commit 9692117
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/pyarrow/src/arrow/python/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9692117

Please sign in to comment.