Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APPLE: Fix Missing cstdef #3535

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

dgovil
Copy link
Collaborator

@dgovil dgovil commented Feb 19, 2025

Description of Change(s)

An upstream change to Clang will require that size_t be explicitly brought in from a header, rather than implicitly used, as it allows delineation between different declarations of size_t.

The compiler versions are free to move around and/or remove unnecessary implicit includes internally to improve build times regularly and breaks folks accidentally relying on transitive includes quite often. libc++ 20.0.0 removed some transitive includes which causes breakages in code that was accidentally relying on those, violating the "include-what-you-use" principle

This change brings them in from cstddef and prefixes them with the std namespace

Checklist

An upstream change to Clang ( https://discourse.llvm.org/c/announce/46 ) will require that size_t be explicitly brought in from a header, rather than implicitly used, as it allows delineation between different declarations of size_t.

This change brings them in from cstddef and prefixes them with the std namespace
@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-10686

(This is an automated message. See here for more information.)

@jesschimein
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants