GH-47953: [C++] Remove Windows inclusion from int_util_overflow.h#47950
GH-47953: [C++] Remove Windows inclusion from int_util_overflow.h#47950pitrou merged 1 commit intoapache:mainfrom
int_util_overflow.h#47950Conversation
|
Thanks for opening a pull request! If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project. Then could you also rename the pull request title in the following format? or See also: |
|
@github-actions crossbow submit windowscp313* test-build-vcpkg-win |
|
Revision: 1a66de4 Submitted crossbow builds: ursacomputing/crossbow @ actions-552c508701
|
|
@github-actions crossbow submit r-binary-packages verify-rc-source-windows |
|
Revision: 1a66de4 Submitted crossbow builds: ursacomputing/crossbow @ actions-c171f0b7b7
|
int_util_overflow.h
|
CI failures are unrelated. |
|
Ok, this PR was apparently not enough: |
|
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 57c329f. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 268 possible false positives for unstable benchmarks that are known to sometimes produce them. |
…w.h` (apache#47950) ### Rationale for this change In `int_util_overflow.h` we're currently including (indirectly) some Windows header through `windows_compatibility.h`: https://github.com/apache/arrow/blob/f669b9fb6b71e74bb41496252709b494233de44d/cpp/src/arrow/util/int_util_overflow.h#L28-L33 This was probably necessary when this was initially committed, but can produce problems when expanding the use of this header in our codebase, due to unwanted macro definitions, here is an [example](https://github.com/apache/arrow/actions/runs/18754865884/job/53504089972?pr=47925): ``` D:/a/arrow/arrow/cpp/src/parquet/arrow/schema.cc:78:45: error: expected unqualified-id 78 | return is_nullable ? Repetition::OPTIONAL : Repetition::REQUIRED; | ^ D:/a/arrow/arrow/cpp/src/parquet/arrow/schema.cc:331:45: error: expected unqualified-id 331 | if (repetition != Repetition::OPTIONAL) { | ^ 2 errors generated. ``` ### What changes are included in this PR? Simply remove the Windows inclusion. This seems to pass our current CI suite. ### Are these changes tested? Yes, by existing CI tests. ### Are there any user-facing changes? No. * GitHub Issue: apache#47953 Authored-by: Antoine Pitrou <[email protected]> Signed-off-by: Antoine Pitrou <[email protected]>
Rationale for this change
In
int_util_overflow.hwe're currently including (indirectly) some Windows header throughwindows_compatibility.h:arrow/cpp/src/arrow/util/int_util_overflow.h
Lines 28 to 33 in f669b9f
This was probably necessary when this was initially committed, but can produce problems when expanding the use of this header in our codebase, due to unwanted macro definitions, here is an example:
What changes are included in this PR?
Simply remove the Windows inclusion. This seems to pass our current CI suite.
Are these changes tested?
Yes, by existing CI tests.
Are there any user-facing changes?
No.
int_util_overflow.hincludes some Windows headers #47953