-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR #22815: [PJRT C API] Ensure C Compliance for all C headers
Imported from GitHub PR #22815 `<cstd*>` headers are C++ headers that wrap their `<std*.h>` counteparts in the std namespace and re-exports them as well. It is meant to be consumed by C++ compilers, not C compilers. Since this is a C API, this PR replaces usages of `<cstd*>` include statements by their C counterparts only for exported C api headers. This PR supersedes #22082 and fixes it across the whole C API. Copybara import of the project: -- d2a1096 by Corentin Kerisit <[email protected]>: [PJRT C API] Ensure C Compliance for all C headers <cstd*> headers are C++ headers that wrap their <std*.h> counteparts in the std namespace and re-exports them as well.. It is meant to be consumed by C++ compilers, not C compilers. Since this is a C API, this PR replaces usages of <cstd*> include statements by their C counterparts only for exported C api headers. This PR supersedes #22082 and fixes it across the whole C API. -- f1f6eb6 by Corentin Kerisit <[email protected]>: Add missing typedef when refering to structs Merging this change closes #22815 COPYBARA_INTEGRATE_REVIEW=#22815 from cerisier:cerisir/fix-c-compatibility f1f6eb6 PiperOrigin-RevId: 728682193
- Loading branch information
1 parent
6c41035
commit a41222c
Showing
7 changed files
with
31 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters