Skip to content

Conversation

@beschulz
Copy link
Contributor

This is related to the following PR which integrates the upstream include slightly incorrect. #8265 (comment)

Inspecting this a bit closer, I believe the issue really is that including the c++ cstdio header in a block that has c linkage (extern "C") is simply incorrect. That it works with current clang versions seems to me more like a happy accident. Upstream has the include further down the header in the "IMPLEMENTATION" section - at this point the extern "C" block is already closed so it's not an issue there.

The change is trivial and gets the code closer to upstream.

@google-cla
Copy link

google-cla bot commented Dec 30, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@z3moon z3moon added the internal Issue/PR does not affect clients label Jan 2, 2026
@z3moon z3moon requested a review from poweifeng January 2, 2026 17:49
Copy link
Contributor

@z3moon z3moon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM based on the discussion in the other PR. But please wait for powei's review.

@pixelflinger pixelflinger merged commit 023318c into google:main Jan 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Issue/PR does not affect clients

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants